diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2013-05-18 23:33:48 -0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2013-05-18 23:52:18 -0400 |
commit | b7bd4c20acfd951ba46647e07411285997d952f4 (patch) | |
tree | 62938a5bce642bc1ac25e638a2b3427ee48d8b06 /celt/fixed_c6x.h | |
parent | 359306985b69086e260bb4cc9b053ba00f3125d1 (diff) | |
download | libopus-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.h | 2 |
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 */ |