| Index: silk/MacroDebug.h
 | 
| diff --git a/silk/MacroDebug.h b/silk/MacroDebug.h
 | 
| index 9c29576b93de33194643bff8c071c1b1a5f5a457..35aedc5c5fa646722e6879ee51c78f324491ed84 100644
 | 
| --- a/silk/MacroDebug.h
 | 
| +++ b/silk/MacroDebug.h
 | 
| @@ -36,7 +36,7 @@ POSSIBILITY OF SUCH DAMAGE.
 | 
|  
 | 
|  #undef silk_ADD16
 | 
|  #define silk_ADD16(a,b) silk_ADD16_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_int16 silk_ADD16_(opus_int16 a, opus_int16 b, char *file, int line){
 | 
| +static OPUS_INLINE opus_int16 silk_ADD16_(opus_int16 a, opus_int16 b, char *file, int line){
 | 
|      opus_int16 ret;
 | 
|  
 | 
|      ret = a + b;
 | 
| @@ -52,7 +52,7 @@ static inline opus_int16 silk_ADD16_(opus_int16 a, opus_int16 b, char *file, int
 | 
|  
 | 
|  #undef silk_ADD32
 | 
|  #define silk_ADD32(a,b) silk_ADD32_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_int32 silk_ADD32_(opus_int32 a, opus_int32 b, char *file, int line){
 | 
| +static OPUS_INLINE opus_int32 silk_ADD32_(opus_int32 a, opus_int32 b, char *file, int line){
 | 
|      opus_int32 ret;
 | 
|  
 | 
|      ret = a + b;
 | 
| @@ -68,7 +68,7 @@ static inline opus_int32 silk_ADD32_(opus_int32 a, opus_int32 b, char *file, int
 | 
|  
 | 
|  #undef silk_ADD64
 | 
|  #define silk_ADD64(a,b) silk_ADD64_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_int64 silk_ADD64_(opus_int64 a, opus_int64 b, char *file, int line){
 | 
| +static OPUS_INLINE opus_int64 silk_ADD64_(opus_int64 a, opus_int64 b, char *file, int line){
 | 
|      opus_int64 ret;
 | 
|  
 | 
|      ret = a + b;
 | 
| @@ -84,7 +84,7 @@ static inline opus_int64 silk_ADD64_(opus_int64 a, opus_int64 b, char *file, int
 | 
|  
 | 
|  #undef silk_SUB16
 | 
|  #define silk_SUB16(a,b) silk_SUB16_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_int16 silk_SUB16_(opus_int16 a, opus_int16 b, char *file, int line){
 | 
| +static OPUS_INLINE opus_int16 silk_SUB16_(opus_int16 a, opus_int16 b, char *file, int line){
 | 
|      opus_int16 ret;
 | 
|  
 | 
|      ret = a - b;
 | 
| @@ -100,7 +100,7 @@ static inline opus_int16 silk_SUB16_(opus_int16 a, opus_int16 b, char *file, int
 | 
|  
 | 
|  #undef silk_SUB32
 | 
|  #define silk_SUB32(a,b) silk_SUB32_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_int32 silk_SUB32_(opus_int32 a, opus_int32 b, char *file, int line){
 | 
| +static OPUS_INLINE opus_int32 silk_SUB32_(opus_int32 a, opus_int32 b, char *file, int line){
 | 
|      opus_int32 ret;
 | 
|  
 | 
|      ret = a - b;
 | 
| @@ -116,7 +116,7 @@ static inline opus_int32 silk_SUB32_(opus_int32 a, opus_int32 b, char *file, int
 | 
|  
 | 
|  #undef silk_SUB64
 | 
|  #define silk_SUB64(a,b) silk_SUB64_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_int64 silk_SUB64_(opus_int64 a, opus_int64 b, char *file, int line){
 | 
| +static OPUS_INLINE opus_int64 silk_SUB64_(opus_int64 a, opus_int64 b, char *file, int line){
 | 
|      opus_int64 ret;
 | 
|  
 | 
|      ret = a - b;
 | 
| @@ -132,7 +132,7 @@ static inline opus_int64 silk_SUB64_(opus_int64 a, opus_int64 b, char *file, int
 | 
|  
 | 
|  #undef silk_ADD_SAT16
 | 
|  #define silk_ADD_SAT16(a,b) silk_ADD_SAT16_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_int16 silk_ADD_SAT16_( opus_int16 a16, opus_int16 b16, char *file, int line) {
 | 
| +static OPUS_INLINE opus_int16 silk_ADD_SAT16_( opus_int16 a16, opus_int16 b16, char *file, int line) {
 | 
|      opus_int16 res;
 | 
|      res = (opus_int16)silk_SAT16( silk_ADD32( (opus_int32)(a16), (b16) ) );
 | 
|      if ( res != silk_SAT16( (opus_int32)a16 + (opus_int32)b16 ) )
 | 
| @@ -147,7 +147,7 @@ static inline opus_int16 silk_ADD_SAT16_( opus_int16 a16, opus_int16 b16, char *
 | 
|  
 | 
|  #undef silk_ADD_SAT32
 | 
|  #define silk_ADD_SAT32(a,b) silk_ADD_SAT32_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_int32 silk_ADD_SAT32_(opus_int32 a32, opus_int32 b32, char *file, int line){
 | 
| +static OPUS_INLINE opus_int32 silk_ADD_SAT32_(opus_int32 a32, opus_int32 b32, char *file, int line){
 | 
|      opus_int32 res;
 | 
|      res =   ((((opus_uint32)(a32) + (opus_uint32)(b32)) & 0x80000000) == 0 ?       \
 | 
|              ((((a32) & (b32)) & 0x80000000) != 0 ? silk_int32_MIN : (a32)+(b32)) : \
 | 
| @@ -164,7 +164,7 @@ static inline opus_int32 silk_ADD_SAT32_(opus_int32 a32, opus_int32 b32, char *f
 | 
|  
 | 
|  #undef silk_ADD_SAT64
 | 
|  #define silk_ADD_SAT64(a,b) silk_ADD_SAT64_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_int64 silk_ADD_SAT64_( opus_int64 a64, opus_int64 b64, char *file, int line) {
 | 
| +static OPUS_INLINE opus_int64 silk_ADD_SAT64_( opus_int64 a64, opus_int64 b64, char *file, int line) {
 | 
|      opus_int64 res;
 | 
|      int        fail = 0;
 | 
|      res =   ((((a64) + (b64)) & 0x8000000000000000LL) == 0 ?                                 \
 | 
| @@ -193,7 +193,7 @@ static inline opus_int64 silk_ADD_SAT64_( opus_int64 a64, opus_int64 b64, char *
 | 
|  
 | 
|  #undef silk_SUB_SAT16
 | 
|  #define silk_SUB_SAT16(a,b) silk_SUB_SAT16_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_int16 silk_SUB_SAT16_( opus_int16 a16, opus_int16 b16, char *file, int line ) {
 | 
| +static OPUS_INLINE opus_int16 silk_SUB_SAT16_( opus_int16 a16, opus_int16 b16, char *file, int line ) {
 | 
|      opus_int16 res;
 | 
|      res = (opus_int16)silk_SAT16( silk_SUB32( (opus_int32)(a16), (b16) ) );
 | 
|      if ( res != silk_SAT16( (opus_int32)a16 - (opus_int32)b16 ) )
 | 
| @@ -208,7 +208,7 @@ static inline opus_int16 silk_SUB_SAT16_( opus_int16 a16, opus_int16 b16, char *
 | 
|  
 | 
|  #undef silk_SUB_SAT32
 | 
|  #define silk_SUB_SAT32(a,b) silk_SUB_SAT32_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_int32 silk_SUB_SAT32_( opus_int32 a32, opus_int32 b32, char *file, int line ) {
 | 
| +static OPUS_INLINE opus_int32 silk_SUB_SAT32_( opus_int32 a32, opus_int32 b32, char *file, int line ) {
 | 
|      opus_int32 res;
 | 
|      res =   ((((opus_uint32)(a32)-(opus_uint32)(b32)) & 0x80000000) == 0 ?                \
 | 
|              (( (a32) & ((b32)^0x80000000) & 0x80000000) ? silk_int32_MIN : (a32)-(b32)) : \
 | 
| @@ -225,7 +225,7 @@ static inline opus_int32 silk_SUB_SAT32_( opus_int32 a32, opus_int32 b32, char *
 | 
|  
 | 
|  #undef silk_SUB_SAT64
 | 
|  #define silk_SUB_SAT64(a,b) silk_SUB_SAT64_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_int64 silk_SUB_SAT64_( opus_int64 a64, opus_int64 b64, char *file, int line ) {
 | 
| +static OPUS_INLINE opus_int64 silk_SUB_SAT64_( opus_int64 a64, opus_int64 b64, char *file, int line ) {
 | 
|      opus_int64 res;
 | 
|      int        fail = 0;
 | 
|      res =   ((((a64)-(b64)) & 0x8000000000000000LL) == 0 ?                                                    \
 | 
| @@ -254,7 +254,7 @@ static inline opus_int64 silk_SUB_SAT64_( opus_int64 a64, opus_int64 b64, char *
 | 
|  
 | 
|  #undef silk_MUL
 | 
|  #define silk_MUL(a,b) silk_MUL_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_int32 silk_MUL_(opus_int32 a32, opus_int32 b32, char *file, int line){
 | 
| +static OPUS_INLINE opus_int32 silk_MUL_(opus_int32 a32, opus_int32 b32, char *file, int line){
 | 
|      opus_int32 ret;
 | 
|      opus_int64 ret64;
 | 
|      ret = a32 * b32;
 | 
| @@ -271,7 +271,7 @@ static inline opus_int32 silk_MUL_(opus_int32 a32, opus_int32 b32, char *file, i
 | 
|  
 | 
|  #undef silk_MUL_uint
 | 
|  #define silk_MUL_uint(a,b) silk_MUL_uint_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_uint32 silk_MUL_uint_(opus_uint32 a32, opus_uint32 b32, char *file, int line){
 | 
| +static OPUS_INLINE opus_uint32 silk_MUL_uint_(opus_uint32 a32, opus_uint32 b32, char *file, int line){
 | 
|      opus_uint32 ret;
 | 
|      ret = a32 * b32;
 | 
|      if ( (opus_uint64)ret != (opus_uint64)a32 * (opus_uint64)b32 )
 | 
| @@ -286,7 +286,7 @@ static inline opus_uint32 silk_MUL_uint_(opus_uint32 a32, opus_uint32 b32, char
 | 
|  
 | 
|  #undef silk_MLA
 | 
|  #define silk_MLA(a,b,c) silk_MLA_((a), (b), (c), __FILE__, __LINE__)
 | 
| -static inline opus_int32 silk_MLA_(opus_int32 a32, opus_int32 b32, opus_int32 c32, char *file, int line){
 | 
| +static OPUS_INLINE opus_int32 silk_MLA_(opus_int32 a32, opus_int32 b32, opus_int32 c32, char *file, int line){
 | 
|      opus_int32 ret;
 | 
|      ret = a32 + b32 * c32;
 | 
|      if ( (opus_int64)ret != (opus_int64)a32 + (opus_int64)b32 * (opus_int64)c32 )
 | 
| @@ -301,7 +301,7 @@ static inline opus_int32 silk_MLA_(opus_int32 a32, opus_int32 b32, opus_int32 c3
 | 
|  
 | 
|  #undef silk_MLA_uint
 | 
|  #define silk_MLA_uint(a,b,c) silk_MLA_uint_((a), (b), (c), __FILE__, __LINE__)
 | 
| -static inline opus_int32 silk_MLA_uint_(opus_uint32 a32, opus_uint32 b32, opus_uint32 c32, char *file, int line){
 | 
| +static OPUS_INLINE opus_int32 silk_MLA_uint_(opus_uint32 a32, opus_uint32 b32, opus_uint32 c32, char *file, int line){
 | 
|      opus_uint32 ret;
 | 
|      ret = a32 + b32 * c32;
 | 
|      if ( (opus_int64)ret != (opus_int64)a32 + (opus_int64)b32 * (opus_int64)c32 )
 | 
| @@ -316,7 +316,7 @@ static inline opus_int32 silk_MLA_uint_(opus_uint32 a32, opus_uint32 b32, opus_u
 | 
|  
 | 
|  #undef silk_SMULWB
 | 
|  #define silk_SMULWB(a,b) silk_SMULWB_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_int32 silk_SMULWB_(opus_int32 a32, opus_int32 b32, char *file, int line){
 | 
| +static OPUS_INLINE opus_int32 silk_SMULWB_(opus_int32 a32, opus_int32 b32, char *file, int line){
 | 
|      opus_int32 ret;
 | 
|      ret = (a32 >> 16) * (opus_int32)((opus_int16)b32) + (((a32 & 0x0000FFFF) * (opus_int32)((opus_int16)b32)) >> 16);
 | 
|      if ( (opus_int64)ret != ((opus_int64)a32 * (opus_int16)b32) >> 16 )
 | 
| @@ -331,7 +331,7 @@ static inline opus_int32 silk_SMULWB_(opus_int32 a32, opus_int32 b32, char *file
 | 
|  
 | 
|  #undef silk_SMLAWB
 | 
|  #define silk_SMLAWB(a,b,c) silk_SMLAWB_((a), (b), (c), __FILE__, __LINE__)
 | 
| -static inline opus_int32 silk_SMLAWB_(opus_int32 a32, opus_int32 b32, opus_int32 c32, char *file, int line){
 | 
| +static OPUS_INLINE opus_int32 silk_SMLAWB_(opus_int32 a32, opus_int32 b32, opus_int32 c32, char *file, int line){
 | 
|      opus_int32 ret;
 | 
|      ret = silk_ADD32( a32, silk_SMULWB( b32, c32 ) );
 | 
|      if ( silk_ADD32( a32, silk_SMULWB( b32, c32 ) ) != silk_ADD_SAT32( a32, silk_SMULWB( b32, c32 ) ) )
 | 
| @@ -346,7 +346,7 @@ static inline opus_int32 silk_SMLAWB_(opus_int32 a32, opus_int32 b32, opus_int32
 | 
|  
 | 
|  #undef silk_SMULWT
 | 
|  #define silk_SMULWT(a,b) silk_SMULWT_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_int32 silk_SMULWT_(opus_int32 a32, opus_int32 b32, char *file, int line){
 | 
| +static OPUS_INLINE opus_int32 silk_SMULWT_(opus_int32 a32, opus_int32 b32, char *file, int line){
 | 
|      opus_int32 ret;
 | 
|      ret = (a32 >> 16) * (b32 >> 16) + (((a32 & 0x0000FFFF) * (b32 >> 16)) >> 16);
 | 
|      if ( (opus_int64)ret != ((opus_int64)a32 * (b32 >> 16)) >> 16 )
 | 
| @@ -361,7 +361,7 @@ static inline opus_int32 silk_SMULWT_(opus_int32 a32, opus_int32 b32, char *file
 | 
|  
 | 
|  #undef silk_SMLAWT
 | 
|  #define silk_SMLAWT(a,b,c) silk_SMLAWT_((a), (b), (c), __FILE__, __LINE__)
 | 
| -static inline opus_int32 silk_SMLAWT_(opus_int32 a32, opus_int32 b32, opus_int32 c32, char *file, int line){
 | 
| +static OPUS_INLINE opus_int32 silk_SMLAWT_(opus_int32 a32, opus_int32 b32, opus_int32 c32, char *file, int line){
 | 
|      opus_int32 ret;
 | 
|      ret = a32 + ((b32 >> 16) * (c32 >> 16)) + (((b32 & 0x0000FFFF) * ((c32 >> 16)) >> 16));
 | 
|      if ( (opus_int64)ret != (opus_int64)a32 + (((opus_int64)b32 * (c32 >> 16)) >> 16) )
 | 
| @@ -376,7 +376,7 @@ static inline opus_int32 silk_SMLAWT_(opus_int32 a32, opus_int32 b32, opus_int32
 | 
|  
 | 
|  #undef silk_SMULL
 | 
|  #define silk_SMULL(a,b) silk_SMULL_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_int64 silk_SMULL_(opus_int64 a64, opus_int64 b64, char *file, int line){
 | 
| +static OPUS_INLINE opus_int64 silk_SMULL_(opus_int64 a64, opus_int64 b64, char *file, int line){
 | 
|      opus_int64 ret64;
 | 
|      int        fail = 0;
 | 
|      ret64 = a64 * b64;
 | 
| @@ -398,7 +398,7 @@ static inline opus_int64 silk_SMULL_(opus_int64 a64, opus_int64 b64, char *file,
 | 
|  /* no checking needed for silk_SMULBB */
 | 
|  #undef silk_SMLABB
 | 
|  #define silk_SMLABB(a,b,c) silk_SMLABB_((a), (b), (c), __FILE__, __LINE__)
 | 
| -static inline opus_int32 silk_SMLABB_(opus_int32 a32, opus_int32 b32, opus_int32 c32, char *file, int line){
 | 
| +static OPUS_INLINE opus_int32 silk_SMLABB_(opus_int32 a32, opus_int32 b32, opus_int32 c32, char *file, int line){
 | 
|      opus_int32 ret;
 | 
|      ret = a32 + (opus_int32)((opus_int16)b32) * (opus_int32)((opus_int16)c32);
 | 
|      if ( (opus_int64)ret != (opus_int64)a32 + (opus_int64)b32 * (opus_int16)c32 )
 | 
| @@ -414,7 +414,7 @@ static inline opus_int32 silk_SMLABB_(opus_int32 a32, opus_int32 b32, opus_int32
 | 
|  /* no checking needed for silk_SMULBT */
 | 
|  #undef silk_SMLABT
 | 
|  #define silk_SMLABT(a,b,c) silk_SMLABT_((a), (b), (c), __FILE__, __LINE__)
 | 
| -static inline opus_int32 silk_SMLABT_(opus_int32 a32, opus_int32 b32, opus_int32 c32, char *file, int line){
 | 
| +static OPUS_INLINE opus_int32 silk_SMLABT_(opus_int32 a32, opus_int32 b32, opus_int32 c32, char *file, int line){
 | 
|      opus_int32 ret;
 | 
|      ret = a32 + ((opus_int32)((opus_int16)b32)) * (c32 >> 16);
 | 
|      if ( (opus_int64)ret != (opus_int64)a32 + (opus_int64)b32 * (c32 >> 16) )
 | 
| @@ -430,7 +430,7 @@ static inline opus_int32 silk_SMLABT_(opus_int32 a32, opus_int32 b32, opus_int32
 | 
|  /* no checking needed for silk_SMULTT */
 | 
|  #undef silk_SMLATT
 | 
|  #define silk_SMLATT(a,b,c) silk_SMLATT_((a), (b), (c), __FILE__, __LINE__)
 | 
| -static inline opus_int32 silk_SMLATT_(opus_int32 a32, opus_int32 b32, opus_int32 c32, char *file, int line){
 | 
| +static OPUS_INLINE opus_int32 silk_SMLATT_(opus_int32 a32, opus_int32 b32, opus_int32 c32, char *file, int line){
 | 
|      opus_int32 ret;
 | 
|      ret = a32 + (b32 >> 16) * (c32 >> 16);
 | 
|      if ( (opus_int64)ret != (opus_int64)a32 + (b32 >> 16) * (c32 >> 16) )
 | 
| @@ -445,7 +445,7 @@ static inline opus_int32 silk_SMLATT_(opus_int32 a32, opus_int32 b32, opus_int32
 | 
|  
 | 
|  #undef silk_SMULWW
 | 
|  #define silk_SMULWW(a,b) silk_SMULWW_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_int32 silk_SMULWW_(opus_int32 a32, opus_int32 b32, char *file, int line){
 | 
| +static OPUS_INLINE opus_int32 silk_SMULWW_(opus_int32 a32, opus_int32 b32, char *file, int line){
 | 
|      opus_int32 ret, tmp1, tmp2;
 | 
|      opus_int64 ret64;
 | 
|      int        fail = 0;
 | 
| @@ -476,7 +476,7 @@ static inline opus_int32 silk_SMULWW_(opus_int32 a32, opus_int32 b32, char *file
 | 
|  
 | 
|  #undef silk_SMLAWW
 | 
|  #define silk_SMLAWW(a,b,c) silk_SMLAWW_((a), (b), (c), __FILE__, __LINE__)
 | 
| -static inline opus_int32 silk_SMLAWW_(opus_int32 a32, opus_int32 b32, opus_int32 c32, char *file, int line){
 | 
| +static OPUS_INLINE opus_int32 silk_SMLAWW_(opus_int32 a32, opus_int32 b32, opus_int32 c32, char *file, int line){
 | 
|      opus_int32 ret, tmp;
 | 
|  
 | 
|      tmp = silk_SMULWW( b32, c32 );
 | 
| @@ -505,7 +505,7 @@ static inline opus_int32 silk_SMLAWW_(opus_int32 a32, opus_int32 b32, opus_int32
 | 
|  
 | 
|  #undef silk_DIV32
 | 
|  #define silk_DIV32(a,b) silk_DIV32_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_int32 silk_DIV32_(opus_int32 a32, opus_int32 b32, char *file, int line){
 | 
| +static OPUS_INLINE opus_int32 silk_DIV32_(opus_int32 a32, opus_int32 b32, char *file, int line){
 | 
|      if ( b32 == 0 )
 | 
|      {
 | 
|          fprintf (stderr, "silk_DIV32(%d, %d) in %s: line %d\n", a32, b32, file, line);
 | 
| @@ -518,7 +518,7 @@ static inline opus_int32 silk_DIV32_(opus_int32 a32, opus_int32 b32, char *file,
 | 
|  
 | 
|  #undef silk_DIV32_16
 | 
|  #define silk_DIV32_16(a,b) silk_DIV32_16_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_int32 silk_DIV32_16_(opus_int32 a32, opus_int32 b32, char *file, int line){
 | 
| +static OPUS_INLINE opus_int32 silk_DIV32_16_(opus_int32 a32, opus_int32 b32, char *file, int line){
 | 
|      int fail = 0;
 | 
|      fail |= b32 == 0;
 | 
|      fail |= b32 > silk_int16_MAX;
 | 
| @@ -544,7 +544,7 @@ static inline opus_int32 silk_DIV32_16_(opus_int32 a32, opus_int32 b32, char *fi
 | 
|  
 | 
|  #undef silk_LSHIFT8
 | 
|  #define silk_LSHIFT8(a,b) silk_LSHIFT8_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_int8 silk_LSHIFT8_(opus_int8 a, opus_int32 shift, char *file, int line){
 | 
| +static OPUS_INLINE opus_int8 silk_LSHIFT8_(opus_int8 a, opus_int32 shift, char *file, int line){
 | 
|      opus_int8 ret;
 | 
|      int       fail = 0;
 | 
|      ret = a << shift;
 | 
| @@ -563,7 +563,7 @@ static inline opus_int8 silk_LSHIFT8_(opus_int8 a, opus_int32 shift, char *file,
 | 
|  
 | 
|  #undef silk_LSHIFT16
 | 
|  #define silk_LSHIFT16(a,b) silk_LSHIFT16_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_int16 silk_LSHIFT16_(opus_int16 a, opus_int32 shift, char *file, int line){
 | 
| +static OPUS_INLINE opus_int16 silk_LSHIFT16_(opus_int16 a, opus_int32 shift, char *file, int line){
 | 
|      opus_int16 ret;
 | 
|      int        fail = 0;
 | 
|      ret = a << shift;
 | 
| @@ -582,7 +582,7 @@ static inline opus_int16 silk_LSHIFT16_(opus_int16 a, opus_int32 shift, char *fi
 | 
|  
 | 
|  #undef silk_LSHIFT32
 | 
|  #define silk_LSHIFT32(a,b) silk_LSHIFT32_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_int32 silk_LSHIFT32_(opus_int32 a, opus_int32 shift, char *file, int line){
 | 
| +static OPUS_INLINE opus_int32 silk_LSHIFT32_(opus_int32 a, opus_int32 shift, char *file, int line){
 | 
|      opus_int32 ret;
 | 
|      int        fail = 0;
 | 
|      ret = a << shift;
 | 
| @@ -601,7 +601,7 @@ static inline opus_int32 silk_LSHIFT32_(opus_int32 a, opus_int32 shift, char *fi
 | 
|  
 | 
|  #undef silk_LSHIFT64
 | 
|  #define silk_LSHIFT64(a,b) silk_LSHIFT64_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_int64 silk_LSHIFT64_(opus_int64 a, opus_int shift, char *file, int line){
 | 
| +static OPUS_INLINE opus_int64 silk_LSHIFT64_(opus_int64 a, opus_int shift, char *file, int line){
 | 
|      opus_int64 ret;
 | 
|      int        fail = 0;
 | 
|      ret = a << shift;
 | 
| @@ -620,7 +620,7 @@ static inline opus_int64 silk_LSHIFT64_(opus_int64 a, opus_int shift, char *file
 | 
|  
 | 
|  #undef silk_LSHIFT_ovflw
 | 
|  #define silk_LSHIFT_ovflw(a,b) silk_LSHIFT_ovflw_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_int32 silk_LSHIFT_ovflw_(opus_int32 a, opus_int32 shift, char *file, int line){
 | 
| +static OPUS_INLINE opus_int32 silk_LSHIFT_ovflw_(opus_int32 a, opus_int32 shift, char *file, int line){
 | 
|      if ( (shift < 0) || (shift >= 32) ) /* no check for overflow */
 | 
|      {
 | 
|          fprintf (stderr, "silk_LSHIFT_ovflw(%d, %d) in %s: line %d\n", a, shift, file, line);
 | 
| @@ -633,7 +633,7 @@ static inline opus_int32 silk_LSHIFT_ovflw_(opus_int32 a, opus_int32 shift, char
 | 
|  
 | 
|  #undef silk_LSHIFT_uint
 | 
|  #define silk_LSHIFT_uint(a,b) silk_LSHIFT_uint_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_uint32 silk_LSHIFT_uint_(opus_uint32 a, opus_int32 shift, char *file, int line){
 | 
| +static OPUS_INLINE opus_uint32 silk_LSHIFT_uint_(opus_uint32 a, opus_int32 shift, char *file, int line){
 | 
|      opus_uint32 ret;
 | 
|      ret = a << shift;
 | 
|      if ( (shift < 0) || ((opus_int64)ret != ((opus_int64)a) << shift))
 | 
| @@ -648,7 +648,7 @@ static inline opus_uint32 silk_LSHIFT_uint_(opus_uint32 a, opus_int32 shift, cha
 | 
|  
 | 
|  #undef silk_RSHIFT8
 | 
|  #define silk_RSHITF8(a,b) silk_RSHIFT8_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_int8 silk_RSHIFT8_(opus_int8 a, opus_int32 shift, char *file, int line){
 | 
| +static OPUS_INLINE opus_int8 silk_RSHIFT8_(opus_int8 a, opus_int32 shift, char *file, int line){
 | 
|      if ( (shift < 0) || (shift>=8) )
 | 
|      {
 | 
|          fprintf (stderr, "silk_RSHITF8(%d, %d) in %s: line %d\n", a, shift, file, line);
 | 
| @@ -661,7 +661,7 @@ static inline opus_int8 silk_RSHIFT8_(opus_int8 a, opus_int32 shift, char *file,
 | 
|  
 | 
|  #undef silk_RSHIFT16
 | 
|  #define silk_RSHITF16(a,b) silk_RSHIFT16_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_int16 silk_RSHIFT16_(opus_int16 a, opus_int32 shift, char *file, int line){
 | 
| +static OPUS_INLINE opus_int16 silk_RSHIFT16_(opus_int16 a, opus_int32 shift, char *file, int line){
 | 
|      if ( (shift < 0) || (shift>=16) )
 | 
|      {
 | 
|          fprintf (stderr, "silk_RSHITF16(%d, %d) in %s: line %d\n", a, shift, file, line);
 | 
| @@ -674,7 +674,7 @@ static inline opus_int16 silk_RSHIFT16_(opus_int16 a, opus_int32 shift, char *fi
 | 
|  
 | 
|  #undef silk_RSHIFT32
 | 
|  #define silk_RSHIFT32(a,b) silk_RSHIFT32_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_int32 silk_RSHIFT32_(opus_int32 a, opus_int32 shift, char *file, int line){
 | 
| +static OPUS_INLINE opus_int32 silk_RSHIFT32_(opus_int32 a, opus_int32 shift, char *file, int line){
 | 
|      if ( (shift < 0) || (shift>=32) )
 | 
|      {
 | 
|          fprintf (stderr, "silk_RSHITF32(%d, %d) in %s: line %d\n", a, shift, file, line);
 | 
| @@ -687,7 +687,7 @@ static inline opus_int32 silk_RSHIFT32_(opus_int32 a, opus_int32 shift, char *fi
 | 
|  
 | 
|  #undef silk_RSHIFT64
 | 
|  #define silk_RSHIFT64(a,b) silk_RSHIFT64_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_int64 silk_RSHIFT64_(opus_int64 a, opus_int64 shift, char *file, int line){
 | 
| +static OPUS_INLINE opus_int64 silk_RSHIFT64_(opus_int64 a, opus_int64 shift, char *file, int line){
 | 
|      if ( (shift < 0) || (shift>=64) )
 | 
|      {
 | 
|          fprintf (stderr, "silk_RSHITF64(%lld, %lld) in %s: line %d\n", (long long)a, (long long)shift, file, line);
 | 
| @@ -700,7 +700,7 @@ static inline opus_int64 silk_RSHIFT64_(opus_int64 a, opus_int64 shift, char *fi
 | 
|  
 | 
|  #undef silk_RSHIFT_uint
 | 
|  #define silk_RSHIFT_uint(a,b) silk_RSHIFT_uint_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_uint32 silk_RSHIFT_uint_(opus_uint32 a, opus_int32 shift, char *file, int line){
 | 
| +static OPUS_INLINE opus_uint32 silk_RSHIFT_uint_(opus_uint32 a, opus_int32 shift, char *file, int line){
 | 
|      if ( (shift < 0) || (shift>32) )
 | 
|      {
 | 
|          fprintf (stderr, "silk_RSHIFT_uint(%u, %d) in %s: line %d\n", a, shift, file, line);
 | 
| @@ -713,7 +713,7 @@ static inline opus_uint32 silk_RSHIFT_uint_(opus_uint32 a, opus_int32 shift, cha
 | 
|  
 | 
|  #undef silk_ADD_LSHIFT
 | 
|  #define silk_ADD_LSHIFT(a,b,c) silk_ADD_LSHIFT_((a), (b), (c), __FILE__, __LINE__)
 | 
| -static inline int silk_ADD_LSHIFT_(int a, int b, int shift, char *file, int line){
 | 
| +static OPUS_INLINE int silk_ADD_LSHIFT_(int a, int b, int shift, char *file, int line){
 | 
|      opus_int16 ret;
 | 
|      ret = a + (b << shift);
 | 
|      if ( (shift < 0) || (shift>15) || ((opus_int64)ret != (opus_int64)a + (((opus_int64)b) << shift)) )
 | 
| @@ -728,7 +728,7 @@ static inline int silk_ADD_LSHIFT_(int a, int b, int shift, char *file, int line
 | 
|  
 | 
|  #undef silk_ADD_LSHIFT32
 | 
|  #define silk_ADD_LSHIFT32(a,b,c) silk_ADD_LSHIFT32_((a), (b), (c), __FILE__, __LINE__)
 | 
| -static inline opus_int32 silk_ADD_LSHIFT32_(opus_int32 a, opus_int32 b, opus_int32 shift, char *file, int line){
 | 
| +static OPUS_INLINE opus_int32 silk_ADD_LSHIFT32_(opus_int32 a, opus_int32 b, opus_int32 shift, char *file, int line){
 | 
|      opus_int32 ret;
 | 
|      ret = a + (b << shift);
 | 
|      if ( (shift < 0) || (shift>31) || ((opus_int64)ret != (opus_int64)a + (((opus_int64)b) << shift)) )
 | 
| @@ -743,7 +743,7 @@ static inline opus_int32 silk_ADD_LSHIFT32_(opus_int32 a, opus_int32 b, opus_int
 | 
|  
 | 
|  #undef silk_ADD_LSHIFT_uint
 | 
|  #define silk_ADD_LSHIFT_uint(a,b,c) silk_ADD_LSHIFT_uint_((a), (b), (c), __FILE__, __LINE__)
 | 
| -static inline opus_uint32 silk_ADD_LSHIFT_uint_(opus_uint32 a, opus_uint32 b, opus_int32 shift, char *file, int line){
 | 
| +static OPUS_INLINE opus_uint32 silk_ADD_LSHIFT_uint_(opus_uint32 a, opus_uint32 b, opus_int32 shift, char *file, int line){
 | 
|      opus_uint32 ret;
 | 
|      ret = a + (b << shift);
 | 
|      if ( (shift < 0) || (shift>32) || ((opus_int64)ret != (opus_int64)a + (((opus_int64)b) << shift)) )
 | 
| @@ -758,7 +758,7 @@ static inline opus_uint32 silk_ADD_LSHIFT_uint_(opus_uint32 a, opus_uint32 b, op
 | 
|  
 | 
|  #undef silk_ADD_RSHIFT
 | 
|  #define silk_ADD_RSHIFT(a,b,c) silk_ADD_RSHIFT_((a), (b), (c), __FILE__, __LINE__)
 | 
| -static inline int silk_ADD_RSHIFT_(int a, int b, int shift, char *file, int line){
 | 
| +static OPUS_INLINE int silk_ADD_RSHIFT_(int a, int b, int shift, char *file, int line){
 | 
|      opus_int16 ret;
 | 
|      ret = a + (b >> shift);
 | 
|      if ( (shift < 0) || (shift>15) || ((opus_int64)ret != (opus_int64)a + (((opus_int64)b) >> shift)) )
 | 
| @@ -773,7 +773,7 @@ static inline int silk_ADD_RSHIFT_(int a, int b, int shift, char *file, int line
 | 
|  
 | 
|  #undef silk_ADD_RSHIFT32
 | 
|  #define silk_ADD_RSHIFT32(a,b,c) silk_ADD_RSHIFT32_((a), (b), (c), __FILE__, __LINE__)
 | 
| -static inline opus_int32 silk_ADD_RSHIFT32_(opus_int32 a, opus_int32 b, opus_int32 shift, char *file, int line){
 | 
| +static OPUS_INLINE opus_int32 silk_ADD_RSHIFT32_(opus_int32 a, opus_int32 b, opus_int32 shift, char *file, int line){
 | 
|      opus_int32 ret;
 | 
|      ret = a + (b >> shift);
 | 
|      if ( (shift < 0) || (shift>31) || ((opus_int64)ret != (opus_int64)a + (((opus_int64)b) >> shift)) )
 | 
| @@ -788,7 +788,7 @@ static inline opus_int32 silk_ADD_RSHIFT32_(opus_int32 a, opus_int32 b, opus_int
 | 
|  
 | 
|  #undef silk_ADD_RSHIFT_uint
 | 
|  #define silk_ADD_RSHIFT_uint(a,b,c) silk_ADD_RSHIFT_uint_((a), (b), (c), __FILE__, __LINE__)
 | 
| -static inline opus_uint32 silk_ADD_RSHIFT_uint_(opus_uint32 a, opus_uint32 b, opus_int32 shift, char *file, int line){
 | 
| +static OPUS_INLINE opus_uint32 silk_ADD_RSHIFT_uint_(opus_uint32 a, opus_uint32 b, opus_int32 shift, char *file, int line){
 | 
|      opus_uint32 ret;
 | 
|      ret = a + (b >> shift);
 | 
|      if ( (shift < 0) || (shift>32) || ((opus_int64)ret != (opus_int64)a + (((opus_int64)b) >> shift)) )
 | 
| @@ -803,7 +803,7 @@ static inline opus_uint32 silk_ADD_RSHIFT_uint_(opus_uint32 a, opus_uint32 b, op
 | 
|  
 | 
|  #undef silk_SUB_LSHIFT32
 | 
|  #define silk_SUB_LSHIFT32(a,b,c) silk_SUB_LSHIFT32_((a), (b), (c), __FILE__, __LINE__)
 | 
| -static inline opus_int32 silk_SUB_LSHIFT32_(opus_int32 a, opus_int32 b, opus_int32 shift, char *file, int line){
 | 
| +static OPUS_INLINE opus_int32 silk_SUB_LSHIFT32_(opus_int32 a, opus_int32 b, opus_int32 shift, char *file, int line){
 | 
|      opus_int32 ret;
 | 
|      ret = a - (b << shift);
 | 
|      if ( (shift < 0) || (shift>31) || ((opus_int64)ret != (opus_int64)a - (((opus_int64)b) << shift)) )
 | 
| @@ -818,7 +818,7 @@ static inline opus_int32 silk_SUB_LSHIFT32_(opus_int32 a, opus_int32 b, opus_int
 | 
|  
 | 
|  #undef silk_SUB_RSHIFT32
 | 
|  #define silk_SUB_RSHIFT32(a,b,c) silk_SUB_RSHIFT32_((a), (b), (c), __FILE__, __LINE__)
 | 
| -static inline opus_int32 silk_SUB_RSHIFT32_(opus_int32 a, opus_int32 b, opus_int32 shift, char *file, int line){
 | 
| +static OPUS_INLINE opus_int32 silk_SUB_RSHIFT32_(opus_int32 a, opus_int32 b, opus_int32 shift, char *file, int line){
 | 
|      opus_int32 ret;
 | 
|      ret = a - (b >> shift);
 | 
|      if ( (shift < 0) || (shift>31) || ((opus_int64)ret != (opus_int64)a - (((opus_int64)b) >> shift)) )
 | 
| @@ -833,7 +833,7 @@ static inline opus_int32 silk_SUB_RSHIFT32_(opus_int32 a, opus_int32 b, opus_int
 | 
|  
 | 
|  #undef silk_RSHIFT_ROUND
 | 
|  #define silk_RSHIFT_ROUND(a,b) silk_RSHIFT_ROUND_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_int32 silk_RSHIFT_ROUND_(opus_int32 a, opus_int32 shift, char *file, int line){
 | 
| +static OPUS_INLINE opus_int32 silk_RSHIFT_ROUND_(opus_int32 a, opus_int32 shift, char *file, int line){
 | 
|      opus_int32 ret;
 | 
|      ret = shift == 1 ? (a >> 1) + (a & 1) : ((a >> (shift - 1)) + 1) >> 1;
 | 
|      /* the marco definition can't handle a shift of zero */
 | 
| @@ -849,7 +849,7 @@ static inline opus_int32 silk_RSHIFT_ROUND_(opus_int32 a, opus_int32 shift, char
 | 
|  
 | 
|  #undef silk_RSHIFT_ROUND64
 | 
|  #define silk_RSHIFT_ROUND64(a,b) silk_RSHIFT_ROUND64_((a), (b), __FILE__, __LINE__)
 | 
| -static inline opus_int64 silk_RSHIFT_ROUND64_(opus_int64 a, opus_int32 shift, char *file, int line){
 | 
| +static OPUS_INLINE opus_int64 silk_RSHIFT_ROUND64_(opus_int64 a, opus_int32 shift, char *file, int line){
 | 
|      opus_int64 ret;
 | 
|      /* the marco definition can't handle a shift of zero */
 | 
|      if ( (shift <= 0) || (shift>=64) )
 | 
| @@ -865,14 +865,14 @@ static inline opus_int64 silk_RSHIFT_ROUND64_(opus_int64 a, opus_int32 shift, ch
 | 
|  
 | 
|  /* silk_abs is used on floats also, so doesn't work... */
 | 
|  /*#undef silk_abs
 | 
| -static inline opus_int32 silk_abs(opus_int32 a){
 | 
| +static OPUS_INLINE opus_int32 silk_abs(opus_int32 a){
 | 
|      silk_assert(a != 0x80000000);
 | 
|      return (((a) >  0)  ? (a) : -(a));            // Be careful, silk_abs returns wrong when input equals to silk_intXX_MIN
 | 
|  }*/
 | 
|  
 | 
|  #undef silk_abs_int64
 | 
|  #define silk_abs_int64(a) silk_abs_int64_((a), __FILE__, __LINE__)
 | 
| -static inline opus_int64 silk_abs_int64_(opus_int64 a, char *file, int line){
 | 
| +static OPUS_INLINE opus_int64 silk_abs_int64_(opus_int64 a, char *file, int line){
 | 
|      if ( a == silk_int64_MIN )
 | 
|      {
 | 
|          fprintf (stderr, "silk_abs_int64(%lld) in %s: line %d\n", (long long)a, file, line);
 | 
| @@ -885,7 +885,7 @@ static inline opus_int64 silk_abs_int64_(opus_int64 a, char *file, int line){
 | 
|  
 | 
|  #undef silk_abs_int32
 | 
|  #define silk_abs_int32(a) silk_abs_int32_((a), __FILE__, __LINE__)
 | 
| -static inline opus_int32 silk_abs_int32_(opus_int32 a, char *file, int line){
 | 
| +static OPUS_INLINE opus_int32 silk_abs_int32_(opus_int32 a, char *file, int line){
 | 
|      if ( a == silk_int32_MIN )
 | 
|      {
 | 
|          fprintf (stderr, "silk_abs_int32(%d) in %s: line %d\n", a, file, line);
 | 
| @@ -898,7 +898,7 @@ static inline opus_int32 silk_abs_int32_(opus_int32 a, char *file, int line){
 | 
|  
 | 
|  #undef silk_CHECK_FIT8
 | 
|  #define silk_CHECK_FIT8(a) silk_CHECK_FIT8_((a), __FILE__, __LINE__)
 | 
| -static inline opus_int8 silk_CHECK_FIT8_( opus_int64 a, char *file, int line ){
 | 
| +static OPUS_INLINE opus_int8 silk_CHECK_FIT8_( opus_int64 a, char *file, int line ){
 | 
|      opus_int8 ret;
 | 
|      ret = (opus_int8)a;
 | 
|      if ( (opus_int64)ret != a )
 | 
| @@ -913,7 +913,7 @@ static inline opus_int8 silk_CHECK_FIT8_( opus_int64 a, char *file, int line ){
 | 
|  
 | 
|  #undef silk_CHECK_FIT16
 | 
|  #define silk_CHECK_FIT16(a) silk_CHECK_FIT16_((a), __FILE__, __LINE__)
 | 
| -static inline opus_int16 silk_CHECK_FIT16_( opus_int64 a, char *file, int line ){
 | 
| +static OPUS_INLINE opus_int16 silk_CHECK_FIT16_( opus_int64 a, char *file, int line ){
 | 
|      opus_int16 ret;
 | 
|      ret = (opus_int16)a;
 | 
|      if ( (opus_int64)ret != a )
 | 
| @@ -928,7 +928,7 @@ static inline opus_int16 silk_CHECK_FIT16_( opus_int64 a, char *file, int line )
 | 
|  
 | 
|  #undef silk_CHECK_FIT32
 | 
|  #define silk_CHECK_FIT32(a) silk_CHECK_FIT32_((a), __FILE__, __LINE__)
 | 
| -static inline opus_int32 silk_CHECK_FIT32_( opus_int64 a, char *file, int line ){
 | 
| +static OPUS_INLINE opus_int32 silk_CHECK_FIT32_( opus_int64 a, char *file, int line ){
 | 
|      opus_int32 ret;
 | 
|      ret = (opus_int32)a;
 | 
|      if ( (opus_int64)ret != a )
 | 
| 
 |