Skip to content
Snippets Groups Projects
Commit 530198f9 authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

Adds SATURATE16() to the fixed-point debug build too

parent 6bc3e3cf
No related branches found
No related tags found
No related merge requests found
...@@ -507,6 +507,16 @@ static OPUS_INLINE int SATURATE(int a, int b) ...@@ -507,6 +507,16 @@ static OPUS_INLINE int SATURATE(int a, int b)
return a; return a;
} }
static OPUS_INLINE opus_int16 SATURATE16(opus_int32 a)
{
celt_mips+=3;
if (a>32767)
return 32767;
else if (a<-32768)
return -32768;
else return a;
}
static OPUS_INLINE int MULT16_16_Q11_32(int a, int b) static OPUS_INLINE int MULT16_16_Q11_32(int a, int b)
{ {
opus_int64 res; opus_int64 res;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment