aboutsummaryrefslogtreecommitdiff
path: root/celt/fixed_c6x.h
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2013-05-18 23:33:48 -0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2013-05-18 23:52:18 -0400
commitb7bd4c20acfd951ba46647e07411285997d952f4 (patch)
tree62938a5bce642bc1ac25e638a2b3427ee48d8b06 /celt/fixed_c6x.h
parent359306985b69086e260bb4cc9b053ba00f3125d1 (diff)
downloadlibopus-b7bd4c20acfd951ba46647e07411285997d952f4.tar.gz
celt_maxabs16() now returns an opus_val32 to avoid problems with -32768
Diffstat (limited to 'celt/fixed_c6x.h')
-rw-r--r--celt/fixed_c6x.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/celt/fixed_c6x.h b/celt/fixed_c6x.h
index fae92fd0..bb6ad927 100644
--- a/celt/fixed_c6x.h
+++ b/celt/fixed_c6x.h
@@ -64,7 +64,7 @@
#undef MULT16_16_Q15
#define MULT16_16_Q15(a,b) (_smpy(a,b))
-#define celt_maxabs16(x, len) MAX16(maxval((DATA *)x, len),-minval((DATA *)x, len))
+#define celt_maxabs16(x, len) MAX32(EXTEND32(maxval((DATA *)x, len)),-EXTEND32(minval((DATA *)x, len)))
#define OVERRIDE_CELT_MAXABS16
#endif /* FIXED_C6X_H */