diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2016-07-21 19:40:23 -0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2016-07-22 15:30:19 -0400 |
commit | 273906404c1647ef9f43c27fc1efced3c7af96f4 (patch) | |
tree | 1f19bfdacd528081b1f2c9debf82113cc29ff0c6 /celt/arch.h | |
parent | ae3321849596094d204f9c3dbe485b5fde6e5782 (diff) | |
download | libopus-273906404c1647ef9f43c27fc1efced3c7af96f4.tar.gz |
silencing overflows in MDCT and FFT
Diffstat (limited to 'celt/arch.h')
-rw-r--r-- | celt/arch.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/celt/arch.h b/celt/arch.h index 8ceab5fe..05e434b9 100644 --- a/celt/arch.h +++ b/celt/arch.h @@ -186,6 +186,7 @@ static OPUS_INLINE int celt_isnan(float x) #define NEG16(x) (-(x)) #define NEG32(x) (-(x)) +#define NEG32_ovflw(x) (-(x)) #define EXTRACT16(x) (x) #define EXTEND32(x) (x) #define SHR16(a,shift) (a) @@ -209,6 +210,8 @@ static OPUS_INLINE int celt_isnan(float x) #define SUB16(a,b) ((a)-(b)) #define ADD32(a,b) ((a)+(b)) #define SUB32(a,b) ((a)-(b)) +#define ADD32_ovflw(a,b) ((a)+(b)) +#define SUB32_ovflw(a,b) ((a)-(b)) #define MULT16_16_16(a,b) ((a)*(b)) #define MULT16_16(a,b) ((opus_val32)(a)*(opus_val32)(b)) #define MAC16_16(c,a,b) ((c)+(opus_val32)(a)*(opus_val32)(b)) |