summaryrefslogtreecommitdiff
path: root/celt/fixed_debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'celt/fixed_debug.h')
-rw-r--r--celt/fixed_debug.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/celt/fixed_debug.h b/celt/fixed_debug.h
index 3319d92f..80bc9491 100644
--- a/celt/fixed_debug.h
+++ b/celt/fixed_debug.h
@@ -507,6 +507,16 @@ static OPUS_INLINE int SATURATE(int a, int b)
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)
{
opus_int64 res;