diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2016-04-19 16:21:08 -0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2016-07-17 15:05:54 -0400 |
commit | 34da05b30d4947b54c1aafb2dbca8e91f58afaf0 (patch) | |
tree | 34c6dd43f12fe66325cfcced06b02de79a770a6c /silk/MacroCount.h | |
parent | 33f18a20dc1eb401e51369e97674f09f79943631 (diff) | |
download | opus-34da05b30d4947b54c1aafb2dbca8e91f58afaf0.tar.gz |
Fixes signed integer overlof in silk_ADD_POS_SAT32()
Removes unused 64-bit version
Diffstat (limited to 'silk/MacroCount.h')
-rw-r--r-- | silk/MacroCount.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/silk/MacroCount.h b/silk/MacroCount.h index 834817d0..54dbdbd9 100644 --- a/silk/MacroCount.h +++ b/silk/MacroCount.h @@ -319,14 +319,6 @@ static OPUS_INLINE opus_int32 silk_ADD_POS_SAT32(opus_int64 a, opus_int64 b){ return(tmp); } -#undef silk_ADD_POS_SAT64 -static OPUS_INLINE opus_int64 silk_ADD_POS_SAT64(opus_int64 a, opus_int64 b){ - opus_int64 tmp; - ops_count += 1; - tmp = ((((a)+(b)) & 0x8000000000000000LL) ? silk_int64_MAX : ((a)+(b))); - return(tmp); -} - #undef silk_LSHIFT8 static OPUS_INLINE opus_int8 silk_LSHIFT8(opus_int8 a, opus_int32 shift){ opus_int8 ret; |