Index: silk/MacroCount.h |
diff --git a/silk/MacroCount.h b/silk/MacroCount.h |
index dbb9775e6d09f6b1fecb2de297426564876e02ef..834817d058b9e9e4b8e7c244a9ce735278cf3544 100644 |
--- a/silk/MacroCount.h |
+++ b/silk/MacroCount.h |
@@ -34,11 +34,11 @@ POSSIBILITY OF SUCH DAMAGE. |
extern opus_int64 ops_count; |
-static inline opus_int64 silk_SaveCount(){ |
+static OPUS_INLINE opus_int64 silk_SaveCount(){ |
return(ops_count); |
} |
-static inline opus_int64 silk_SaveResetCount(){ |
+static OPUS_INLINE opus_int64 silk_SaveResetCount(){ |
opus_int64 ret; |
ret = ops_count; |
@@ -46,12 +46,12 @@ static inline opus_int64 silk_SaveResetCount(){ |
return(ret); |
} |
-static inline silk_PrintCount(){ |
+static OPUS_INLINE silk_PrintCount(){ |
printf("ops_count = %d \n ", (opus_int32)ops_count); |
} |
#undef silk_MUL |
-static inline opus_int32 silk_MUL(opus_int32 a32, opus_int32 b32){ |
+static OPUS_INLINE opus_int32 silk_MUL(opus_int32 a32, opus_int32 b32){ |
opus_int32 ret; |
ops_count += 4; |
ret = a32 * b32; |
@@ -59,14 +59,14 @@ static inline opus_int32 silk_MUL(opus_int32 a32, opus_int32 b32){ |
} |
#undef silk_MUL_uint |
-static inline opus_uint32 silk_MUL_uint(opus_uint32 a32, opus_uint32 b32){ |
+static OPUS_INLINE opus_uint32 silk_MUL_uint(opus_uint32 a32, opus_uint32 b32){ |
opus_uint32 ret; |
ops_count += 4; |
ret = a32 * b32; |
return ret; |
} |
#undef silk_MLA |
-static inline opus_int32 silk_MLA(opus_int32 a32, opus_int32 b32, opus_int32 c32){ |
+static OPUS_INLINE opus_int32 silk_MLA(opus_int32 a32, opus_int32 b32, opus_int32 c32){ |
opus_int32 ret; |
ops_count += 4; |
ret = a32 + b32 * c32; |
@@ -74,7 +74,7 @@ static inline opus_int32 silk_MLA(opus_int32 a32, opus_int32 b32, opus_int32 c32 |
} |
#undef silk_MLA_uint |
-static inline opus_int32 silk_MLA_uint(opus_uint32 a32, opus_uint32 b32, opus_uint32 c32){ |
+static OPUS_INLINE opus_int32 silk_MLA_uint(opus_uint32 a32, opus_uint32 b32, opus_uint32 c32){ |
opus_uint32 ret; |
ops_count += 4; |
ret = a32 + b32 * c32; |
@@ -82,14 +82,14 @@ static inline opus_int32 silk_MLA_uint(opus_uint32 a32, opus_uint32 b32, opus_ui |
} |
#undef silk_SMULWB |
-static inline opus_int32 silk_SMULWB(opus_int32 a32, opus_int32 b32){ |
+static OPUS_INLINE opus_int32 silk_SMULWB(opus_int32 a32, opus_int32 b32){ |
opus_int32 ret; |
ops_count += 5; |
ret = (a32 >> 16) * (opus_int32)((opus_int16)b32) + (((a32 & 0x0000FFFF) * (opus_int32)((opus_int16)b32)) >> 16); |
return ret; |
} |
#undef silk_SMLAWB |
-static inline opus_int32 silk_SMLAWB(opus_int32 a32, opus_int32 b32, opus_int32 c32){ |
+static OPUS_INLINE opus_int32 silk_SMLAWB(opus_int32 a32, opus_int32 b32, opus_int32 c32){ |
opus_int32 ret; |
ops_count += 5; |
ret = ((a32) + ((((b32) >> 16) * (opus_int32)((opus_int16)(c32))) + ((((b32) & 0x0000FFFF) * (opus_int32)((opus_int16)(c32))) >> 16))); |
@@ -97,14 +97,14 @@ static inline opus_int32 silk_SMLAWB(opus_int32 a32, opus_int32 b32, opus_int32 |
} |
#undef silk_SMULWT |
-static inline opus_int32 silk_SMULWT(opus_int32 a32, opus_int32 b32){ |
+static OPUS_INLINE opus_int32 silk_SMULWT(opus_int32 a32, opus_int32 b32){ |
opus_int32 ret; |
ops_count += 4; |
ret = (a32 >> 16) * (b32 >> 16) + (((a32 & 0x0000FFFF) * (b32 >> 16)) >> 16); |
return ret; |
} |
#undef silk_SMLAWT |
-static inline opus_int32 silk_SMLAWT(opus_int32 a32, opus_int32 b32, opus_int32 c32){ |
+static OPUS_INLINE opus_int32 silk_SMLAWT(opus_int32 a32, opus_int32 b32, opus_int32 c32){ |
opus_int32 ret; |
ops_count += 4; |
ret = a32 + ((b32 >> 16) * (c32 >> 16)) + (((b32 & 0x0000FFFF) * ((c32 >> 16)) >> 16)); |
@@ -112,14 +112,14 @@ static inline opus_int32 silk_SMLAWT(opus_int32 a32, opus_int32 b32, opus_int32 |
} |
#undef silk_SMULBB |
-static inline opus_int32 silk_SMULBB(opus_int32 a32, opus_int32 b32){ |
+static OPUS_INLINE opus_int32 silk_SMULBB(opus_int32 a32, opus_int32 b32){ |
opus_int32 ret; |
ops_count += 1; |
ret = (opus_int32)((opus_int16)a32) * (opus_int32)((opus_int16)b32); |
return ret; |
} |
#undef silk_SMLABB |
-static inline opus_int32 silk_SMLABB(opus_int32 a32, opus_int32 b32, opus_int32 c32){ |
+static OPUS_INLINE opus_int32 silk_SMLABB(opus_int32 a32, opus_int32 b32, opus_int32 c32){ |
opus_int32 ret; |
ops_count += 1; |
ret = a32 + (opus_int32)((opus_int16)b32) * (opus_int32)((opus_int16)c32); |
@@ -127,7 +127,7 @@ static inline opus_int32 silk_SMLABB(opus_int32 a32, opus_int32 b32, opus_int32 |
} |
#undef silk_SMULBT |
-static inline opus_int32 silk_SMULBT(opus_int32 a32, opus_int32 b32 ){ |
+static OPUS_INLINE opus_int32 silk_SMULBT(opus_int32 a32, opus_int32 b32 ){ |
opus_int32 ret; |
ops_count += 4; |
ret = ((opus_int32)((opus_int16)a32)) * (b32 >> 16); |
@@ -135,7 +135,7 @@ static inline opus_int32 silk_SMULBT(opus_int32 a32, opus_int32 b32 ){ |
} |
#undef silk_SMLABT |
-static inline opus_int32 silk_SMLABT(opus_int32 a32, opus_int32 b32, opus_int32 c32){ |
+static OPUS_INLINE opus_int32 silk_SMLABT(opus_int32 a32, opus_int32 b32, opus_int32 c32){ |
opus_int32 ret; |
ops_count += 1; |
ret = a32 + ((opus_int32)((opus_int16)b32)) * (c32 >> 16); |
@@ -143,7 +143,7 @@ static inline opus_int32 silk_SMLABT(opus_int32 a32, opus_int32 b32, opus_int32 |
} |
#undef silk_SMULTT |
-static inline opus_int32 silk_SMULTT(opus_int32 a32, opus_int32 b32){ |
+static OPUS_INLINE opus_int32 silk_SMULTT(opus_int32 a32, opus_int32 b32){ |
opus_int32 ret; |
ops_count += 1; |
ret = (a32 >> 16) * (b32 >> 16); |
@@ -151,7 +151,7 @@ static inline opus_int32 silk_SMULTT(opus_int32 a32, opus_int32 b32){ |
} |
#undef silk_SMLATT |
-static inline opus_int32 silk_SMLATT(opus_int32 a32, opus_int32 b32, opus_int32 c32){ |
+static OPUS_INLINE opus_int32 silk_SMLATT(opus_int32 a32, opus_int32 b32, opus_int32 c32){ |
opus_int32 ret; |
ops_count += 1; |
ret = a32 + (b32 >> 16) * (c32 >> 16); |
@@ -179,7 +179,7 @@ static inline opus_int32 silk_SMLATT(opus_int32 a32, opus_int32 b32, opus_int32 |
#define silk_SMLAWT_ovflw silk_SMLAWT |
#undef silk_SMULL |
-static inline opus_int64 silk_SMULL(opus_int32 a32, opus_int32 b32){ |
+static OPUS_INLINE opus_int64 silk_SMULL(opus_int32 a32, opus_int32 b32){ |
opus_int64 ret; |
ops_count += 8; |
ret = ((opus_int64)(a32) * /*(opus_int64)*/(b32)); |
@@ -187,14 +187,14 @@ static inline opus_int64 silk_SMULL(opus_int32 a32, opus_int32 b32){ |
} |
#undef silk_SMLAL |
-static inline opus_int64 silk_SMLAL(opus_int64 a64, opus_int32 b32, opus_int32 c32){ |
+static OPUS_INLINE opus_int64 silk_SMLAL(opus_int64 a64, opus_int32 b32, opus_int32 c32){ |
opus_int64 ret; |
ops_count += 8; |
ret = a64 + ((opus_int64)(b32) * /*(opus_int64)*/(c32)); |
return ret; |
} |
#undef silk_SMLALBB |
-static inline opus_int64 silk_SMLALBB(opus_int64 a64, opus_int16 b16, opus_int16 c16){ |
+static OPUS_INLINE opus_int64 silk_SMLALBB(opus_int64 a64, opus_int16 b16, opus_int16 c16){ |
opus_int64 ret; |
ops_count += 4; |
ret = a64 + ((opus_int64)(b16) * /*(opus_int64)*/(c16)); |
@@ -202,7 +202,7 @@ static inline opus_int64 silk_SMLALBB(opus_int64 a64, opus_int16 b16, opus_int16 |
} |
#undef SigProcFIX_CLZ16 |
-static inline opus_int32 SigProcFIX_CLZ16(opus_int16 in16) |
+static OPUS_INLINE opus_int32 SigProcFIX_CLZ16(opus_int16 in16) |
{ |
opus_int32 out32 = 0; |
ops_count += 10; |
@@ -240,7 +240,7 @@ static inline opus_int32 SigProcFIX_CLZ16(opus_int16 in16) |
} |
#undef SigProcFIX_CLZ32 |
-static inline opus_int32 SigProcFIX_CLZ32(opus_int32 in32) |
+static OPUS_INLINE opus_int32 SigProcFIX_CLZ32(opus_int32 in32) |
{ |
/* test highest 16 bits and convert to opus_int16 */ |
ops_count += 2; |
@@ -252,19 +252,19 @@ static inline opus_int32 SigProcFIX_CLZ32(opus_int32 in32) |
} |
#undef silk_DIV32 |
-static inline opus_int32 silk_DIV32(opus_int32 a32, opus_int32 b32){ |
+static OPUS_INLINE opus_int32 silk_DIV32(opus_int32 a32, opus_int32 b32){ |
ops_count += 64; |
return a32 / b32; |
} |
#undef silk_DIV32_16 |
-static inline opus_int32 silk_DIV32_16(opus_int32 a32, opus_int32 b32){ |
+static OPUS_INLINE opus_int32 silk_DIV32_16(opus_int32 a32, opus_int32 b32){ |
ops_count += 32; |
return a32 / b32; |
} |
#undef silk_SAT8 |
-static inline opus_int8 silk_SAT8(opus_int64 a){ |
+static OPUS_INLINE opus_int8 silk_SAT8(opus_int64 a){ |
opus_int8 tmp; |
ops_count += 1; |
tmp = (opus_int8)((a) > silk_int8_MAX ? silk_int8_MAX : \ |
@@ -273,7 +273,7 @@ static inline opus_int8 silk_SAT8(opus_int64 a){ |
} |
#undef silk_SAT16 |
-static inline opus_int16 silk_SAT16(opus_int64 a){ |
+static OPUS_INLINE opus_int16 silk_SAT16(opus_int64 a){ |
opus_int16 tmp; |
ops_count += 1; |
tmp = (opus_int16)((a) > silk_int16_MAX ? silk_int16_MAX : \ |
@@ -281,7 +281,7 @@ static inline opus_int16 silk_SAT16(opus_int64 a){ |
return(tmp); |
} |
#undef silk_SAT32 |
-static inline opus_int32 silk_SAT32(opus_int64 a){ |
+static OPUS_INLINE opus_int32 silk_SAT32(opus_int64 a){ |
opus_int32 tmp; |
ops_count += 1; |
tmp = (opus_int32)((a) > silk_int32_MAX ? silk_int32_MAX : \ |
@@ -289,7 +289,7 @@ static inline opus_int32 silk_SAT32(opus_int64 a){ |
return(tmp); |
} |
#undef silk_POS_SAT32 |
-static inline opus_int32 silk_POS_SAT32(opus_int64 a){ |
+static OPUS_INLINE opus_int32 silk_POS_SAT32(opus_int64 a){ |
opus_int32 tmp; |
ops_count += 1; |
tmp = (opus_int32)((a) > silk_int32_MAX ? silk_int32_MAX : (a)); |
@@ -297,14 +297,14 @@ static inline opus_int32 silk_POS_SAT32(opus_int64 a){ |
} |
#undef silk_ADD_POS_SAT8 |
-static inline opus_int8 silk_ADD_POS_SAT8(opus_int64 a, opus_int64 b){ |
+static OPUS_INLINE opus_int8 silk_ADD_POS_SAT8(opus_int64 a, opus_int64 b){ |
opus_int8 tmp; |
ops_count += 1; |
tmp = (opus_int8)((((a)+(b)) & 0x80) ? silk_int8_MAX : ((a)+(b))); |
return(tmp); |
} |
#undef silk_ADD_POS_SAT16 |
-static inline opus_int16 silk_ADD_POS_SAT16(opus_int64 a, opus_int64 b){ |
+static OPUS_INLINE opus_int16 silk_ADD_POS_SAT16(opus_int64 a, opus_int64 b){ |
opus_int16 tmp; |
ops_count += 1; |
tmp = (opus_int16)((((a)+(b)) & 0x8000) ? silk_int16_MAX : ((a)+(b))); |
@@ -312,7 +312,7 @@ static inline opus_int16 silk_ADD_POS_SAT16(opus_int64 a, opus_int64 b){ |
} |
#undef silk_ADD_POS_SAT32 |
-static inline opus_int32 silk_ADD_POS_SAT32(opus_int64 a, opus_int64 b){ |
+static OPUS_INLINE opus_int32 silk_ADD_POS_SAT32(opus_int64 a, opus_int64 b){ |
opus_int32 tmp; |
ops_count += 1; |
tmp = (opus_int32)((((a)+(b)) & 0x80000000) ? silk_int32_MAX : ((a)+(b))); |
@@ -320,7 +320,7 @@ static inline opus_int32 silk_ADD_POS_SAT32(opus_int64 a, opus_int64 b){ |
} |
#undef silk_ADD_POS_SAT64 |
-static inline opus_int64 silk_ADD_POS_SAT64(opus_int64 a, opus_int64 b){ |
+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))); |
@@ -328,40 +328,40 @@ static inline opus_int64 silk_ADD_POS_SAT64(opus_int64 a, opus_int64 b){ |
} |
#undef silk_LSHIFT8 |
-static inline opus_int8 silk_LSHIFT8(opus_int8 a, opus_int32 shift){ |
+static OPUS_INLINE opus_int8 silk_LSHIFT8(opus_int8 a, opus_int32 shift){ |
opus_int8 ret; |
ops_count += 1; |
ret = a << shift; |
return ret; |
} |
#undef silk_LSHIFT16 |
-static inline opus_int16 silk_LSHIFT16(opus_int16 a, opus_int32 shift){ |
+static OPUS_INLINE opus_int16 silk_LSHIFT16(opus_int16 a, opus_int32 shift){ |
opus_int16 ret; |
ops_count += 1; |
ret = a << shift; |
return ret; |
} |
#undef silk_LSHIFT32 |
-static inline opus_int32 silk_LSHIFT32(opus_int32 a, opus_int32 shift){ |
+static OPUS_INLINE opus_int32 silk_LSHIFT32(opus_int32 a, opus_int32 shift){ |
opus_int32 ret; |
ops_count += 1; |
ret = a << shift; |
return ret; |
} |
#undef silk_LSHIFT64 |
-static inline opus_int64 silk_LSHIFT64(opus_int64 a, opus_int shift){ |
+static OPUS_INLINE opus_int64 silk_LSHIFT64(opus_int64 a, opus_int shift){ |
ops_count += 1; |
return a << shift; |
} |
#undef silk_LSHIFT_ovflw |
-static inline opus_int32 silk_LSHIFT_ovflw(opus_int32 a, opus_int32 shift){ |
+static OPUS_INLINE opus_int32 silk_LSHIFT_ovflw(opus_int32 a, opus_int32 shift){ |
ops_count += 1; |
return a << shift; |
} |
#undef silk_LSHIFT_uint |
-static inline opus_uint32 silk_LSHIFT_uint(opus_uint32 a, opus_int32 shift){ |
+static OPUS_INLINE opus_uint32 silk_LSHIFT_uint(opus_uint32 a, opus_int32 shift){ |
opus_uint32 ret; |
ops_count += 1; |
ret = a << shift; |
@@ -369,83 +369,83 @@ static inline opus_uint32 silk_LSHIFT_uint(opus_uint32 a, opus_int32 shift){ |
} |
#undef silk_RSHIFT8 |
-static inline opus_int8 silk_RSHIFT8(opus_int8 a, opus_int32 shift){ |
+static OPUS_INLINE opus_int8 silk_RSHIFT8(opus_int8 a, opus_int32 shift){ |
ops_count += 1; |
return a >> shift; |
} |
#undef silk_RSHIFT16 |
-static inline opus_int16 silk_RSHIFT16(opus_int16 a, opus_int32 shift){ |
+static OPUS_INLINE opus_int16 silk_RSHIFT16(opus_int16 a, opus_int32 shift){ |
ops_count += 1; |
return a >> shift; |
} |
#undef silk_RSHIFT32 |
-static inline opus_int32 silk_RSHIFT32(opus_int32 a, opus_int32 shift){ |
+static OPUS_INLINE opus_int32 silk_RSHIFT32(opus_int32 a, opus_int32 shift){ |
ops_count += 1; |
return a >> shift; |
} |
#undef silk_RSHIFT64 |
-static inline opus_int64 silk_RSHIFT64(opus_int64 a, opus_int64 shift){ |
+static OPUS_INLINE opus_int64 silk_RSHIFT64(opus_int64 a, opus_int64 shift){ |
ops_count += 1; |
return a >> shift; |
} |
#undef silk_RSHIFT_uint |
-static inline opus_uint32 silk_RSHIFT_uint(opus_uint32 a, opus_int32 shift){ |
+static OPUS_INLINE opus_uint32 silk_RSHIFT_uint(opus_uint32 a, opus_int32 shift){ |
ops_count += 1; |
return a >> shift; |
} |
#undef silk_ADD_LSHIFT |
-static inline opus_int32 silk_ADD_LSHIFT(opus_int32 a, opus_int32 b, opus_int32 shift){ |
+static OPUS_INLINE opus_int32 silk_ADD_LSHIFT(opus_int32 a, opus_int32 b, opus_int32 shift){ |
opus_int32 ret; |
ops_count += 1; |
ret = a + (b << shift); |
return ret; /* shift >= 0*/ |
} |
#undef silk_ADD_LSHIFT32 |
-static inline opus_int32 silk_ADD_LSHIFT32(opus_int32 a, opus_int32 b, opus_int32 shift){ |
+static OPUS_INLINE opus_int32 silk_ADD_LSHIFT32(opus_int32 a, opus_int32 b, opus_int32 shift){ |
opus_int32 ret; |
ops_count += 1; |
ret = a + (b << shift); |
return ret; /* shift >= 0*/ |
} |
#undef silk_ADD_LSHIFT_uint |
-static inline opus_uint32 silk_ADD_LSHIFT_uint(opus_uint32 a, opus_uint32 b, opus_int32 shift){ |
+static OPUS_INLINE opus_uint32 silk_ADD_LSHIFT_uint(opus_uint32 a, opus_uint32 b, opus_int32 shift){ |
opus_uint32 ret; |
ops_count += 1; |
ret = a + (b << shift); |
return ret; /* shift >= 0*/ |
} |
#undef silk_ADD_RSHIFT |
-static inline opus_int32 silk_ADD_RSHIFT(opus_int32 a, opus_int32 b, opus_int32 shift){ |
+static OPUS_INLINE opus_int32 silk_ADD_RSHIFT(opus_int32 a, opus_int32 b, opus_int32 shift){ |
opus_int32 ret; |
ops_count += 1; |
ret = a + (b >> shift); |
return ret; /* shift > 0*/ |
} |
#undef silk_ADD_RSHIFT32 |
-static inline opus_int32 silk_ADD_RSHIFT32(opus_int32 a, opus_int32 b, opus_int32 shift){ |
+static OPUS_INLINE opus_int32 silk_ADD_RSHIFT32(opus_int32 a, opus_int32 b, opus_int32 shift){ |
opus_int32 ret; |
ops_count += 1; |
ret = a + (b >> shift); |
return ret; /* shift > 0*/ |
} |
#undef silk_ADD_RSHIFT_uint |
-static inline opus_uint32 silk_ADD_RSHIFT_uint(opus_uint32 a, opus_uint32 b, opus_int32 shift){ |
+static OPUS_INLINE opus_uint32 silk_ADD_RSHIFT_uint(opus_uint32 a, opus_uint32 b, opus_int32 shift){ |
opus_uint32 ret; |
ops_count += 1; |
ret = a + (b >> shift); |
return ret; /* shift > 0*/ |
} |
#undef silk_SUB_LSHIFT32 |
-static inline opus_int32 silk_SUB_LSHIFT32(opus_int32 a, opus_int32 b, opus_int32 shift){ |
+static OPUS_INLINE opus_int32 silk_SUB_LSHIFT32(opus_int32 a, opus_int32 b, opus_int32 shift){ |
opus_int32 ret; |
ops_count += 1; |
ret = a - (b << shift); |
return ret; /* shift >= 0*/ |
} |
#undef silk_SUB_RSHIFT32 |
-static inline opus_int32 silk_SUB_RSHIFT32(opus_int32 a, opus_int32 b, opus_int32 shift){ |
+static OPUS_INLINE opus_int32 silk_SUB_RSHIFT32(opus_int32 a, opus_int32 b, opus_int32 shift){ |
opus_int32 ret; |
ops_count += 1; |
ret = a - (b >> shift); |
@@ -453,7 +453,7 @@ static inline opus_int32 silk_SUB_RSHIFT32(opus_int32 a, opus_int32 b, opus_int3 |
} |
#undef silk_RSHIFT_ROUND |
-static inline opus_int32 silk_RSHIFT_ROUND(opus_int32 a, opus_int32 shift){ |
+static OPUS_INLINE opus_int32 silk_RSHIFT_ROUND(opus_int32 a, opus_int32 shift){ |
opus_int32 ret; |
ops_count += 3; |
ret = shift == 1 ? (a >> 1) + (a & 1) : ((a >> (shift - 1)) + 1) >> 1; |
@@ -461,7 +461,7 @@ static inline opus_int32 silk_RSHIFT_ROUND(opus_int32 a, opus_int32 shift){ |
} |
#undef silk_RSHIFT_ROUND64 |
-static inline opus_int64 silk_RSHIFT_ROUND64(opus_int64 a, opus_int32 shift){ |
+static OPUS_INLINE opus_int64 silk_RSHIFT_ROUND64(opus_int64 a, opus_int32 shift){ |
opus_int64 ret; |
ops_count += 6; |
ret = shift == 1 ? (a >> 1) + (a & 1) : ((a >> (shift - 1)) + 1) >> 1; |
@@ -469,13 +469,13 @@ static inline opus_int64 silk_RSHIFT_ROUND64(opus_int64 a, opus_int32 shift){ |
} |
#undef silk_abs_int64 |
-static inline opus_int64 silk_abs_int64(opus_int64 a){ |
+static OPUS_INLINE opus_int64 silk_abs_int64(opus_int64 a){ |
ops_count += 1; |
return (((a) > 0) ? (a) : -(a)); /* Be careful, silk_abs returns wrong when input equals to silk_intXX_MIN*/ |
} |
#undef silk_abs_int32 |
-static inline opus_int32 silk_abs_int32(opus_int32 a){ |
+static OPUS_INLINE opus_int32 silk_abs_int32(opus_int32 a){ |
ops_count += 1; |
return silk_abs(a); |
} |
@@ -498,7 +498,7 @@ static silk_sign(a){ |
} |
#undef silk_ADD16 |
-static inline opus_int16 silk_ADD16(opus_int16 a, opus_int16 b){ |
+static OPUS_INLINE opus_int16 silk_ADD16(opus_int16 a, opus_int16 b){ |
opus_int16 ret; |
ops_count += 1; |
ret = a + b; |
@@ -506,7 +506,7 @@ static inline opus_int16 silk_ADD16(opus_int16 a, opus_int16 b){ |
} |
#undef silk_ADD32 |
-static inline opus_int32 silk_ADD32(opus_int32 a, opus_int32 b){ |
+static OPUS_INLINE opus_int32 silk_ADD32(opus_int32 a, opus_int32 b){ |
opus_int32 ret; |
ops_count += 1; |
ret = a + b; |
@@ -514,7 +514,7 @@ static inline opus_int32 silk_ADD32(opus_int32 a, opus_int32 b){ |
} |
#undef silk_ADD64 |
-static inline opus_int64 silk_ADD64(opus_int64 a, opus_int64 b){ |
+static OPUS_INLINE opus_int64 silk_ADD64(opus_int64 a, opus_int64 b){ |
opus_int64 ret; |
ops_count += 2; |
ret = a + b; |
@@ -522,7 +522,7 @@ static inline opus_int64 silk_ADD64(opus_int64 a, opus_int64 b){ |
} |
#undef silk_SUB16 |
-static inline opus_int16 silk_SUB16(opus_int16 a, opus_int16 b){ |
+static OPUS_INLINE opus_int16 silk_SUB16(opus_int16 a, opus_int16 b){ |
opus_int16 ret; |
ops_count += 1; |
ret = a - b; |
@@ -530,7 +530,7 @@ static inline opus_int16 silk_SUB16(opus_int16 a, opus_int16 b){ |
} |
#undef silk_SUB32 |
-static inline opus_int32 silk_SUB32(opus_int32 a, opus_int32 b){ |
+static OPUS_INLINE opus_int32 silk_SUB32(opus_int32 a, opus_int32 b){ |
opus_int32 ret; |
ops_count += 1; |
ret = a - b; |
@@ -538,7 +538,7 @@ static inline opus_int32 silk_SUB32(opus_int32 a, opus_int32 b){ |
} |
#undef silk_SUB64 |
-static inline opus_int64 silk_SUB64(opus_int64 a, opus_int64 b){ |
+static OPUS_INLINE opus_int64 silk_SUB64(opus_int64 a, opus_int64 b){ |
opus_int64 ret; |
ops_count += 2; |
ret = a - b; |
@@ -546,7 +546,7 @@ static inline opus_int64 silk_SUB64(opus_int64 a, opus_int64 b){ |
} |
#undef silk_ADD_SAT16 |
-static inline opus_int16 silk_ADD_SAT16( opus_int16 a16, opus_int16 b16 ) { |
+static OPUS_INLINE opus_int16 silk_ADD_SAT16( opus_int16 a16, opus_int16 b16 ) { |
opus_int16 res; |
/* Nb will be counted in AKP_add32 and silk_SAT16*/ |
res = (opus_int16)silk_SAT16( silk_ADD32( (opus_int32)(a16), (b16) ) ); |
@@ -554,7 +554,7 @@ static inline opus_int16 silk_ADD_SAT16( opus_int16 a16, opus_int16 b16 ) { |
} |
#undef silk_ADD_SAT32 |
-static inline opus_int32 silk_ADD_SAT32(opus_int32 a32, opus_int32 b32){ |
+static OPUS_INLINE opus_int32 silk_ADD_SAT32(opus_int32 a32, opus_int32 b32){ |
opus_int32 res; |
ops_count += 1; |
res = ((((a32) + (b32)) & 0x80000000) == 0 ? \ |
@@ -564,7 +564,7 @@ static inline opus_int32 silk_ADD_SAT32(opus_int32 a32, opus_int32 b32){ |
} |
#undef silk_ADD_SAT64 |
-static inline opus_int64 silk_ADD_SAT64( opus_int64 a64, opus_int64 b64 ) { |
+static OPUS_INLINE opus_int64 silk_ADD_SAT64( opus_int64 a64, opus_int64 b64 ) { |
opus_int64 res; |
ops_count += 1; |
res = ((((a64) + (b64)) & 0x8000000000000000LL) == 0 ? \ |
@@ -574,7 +574,7 @@ static inline opus_int64 silk_ADD_SAT64( opus_int64 a64, opus_int64 b64 ) { |
} |
#undef silk_SUB_SAT16 |
-static inline opus_int16 silk_SUB_SAT16( opus_int16 a16, opus_int16 b16 ) { |
+static OPUS_INLINE opus_int16 silk_SUB_SAT16( opus_int16 a16, opus_int16 b16 ) { |
opus_int16 res; |
silk_assert(0); |
/* Nb will be counted in sub-macros*/ |
@@ -583,7 +583,7 @@ static inline opus_int16 silk_SUB_SAT16( opus_int16 a16, opus_int16 b16 ) { |
} |
#undef silk_SUB_SAT32 |
-static inline opus_int32 silk_SUB_SAT32( opus_int32 a32, opus_int32 b32 ) { |
+static OPUS_INLINE opus_int32 silk_SUB_SAT32( opus_int32 a32, opus_int32 b32 ) { |
opus_int32 res; |
ops_count += 1; |
res = ((((a32)-(b32)) & 0x80000000) == 0 ? \ |
@@ -593,7 +593,7 @@ static inline opus_int32 silk_SUB_SAT32( opus_int32 a32, opus_int32 b32 ) { |
} |
#undef silk_SUB_SAT64 |
-static inline opus_int64 silk_SUB_SAT64( opus_int64 a64, opus_int64 b64 ) { |
+static OPUS_INLINE opus_int64 silk_SUB_SAT64( opus_int64 a64, opus_int64 b64 ) { |
opus_int64 res; |
ops_count += 1; |
res = ((((a64)-(b64)) & 0x8000000000000000LL) == 0 ? \ |
@@ -604,7 +604,7 @@ static inline opus_int64 silk_SUB_SAT64( opus_int64 a64, opus_int64 b64 ) { |
} |
#undef silk_SMULWW |
-static inline opus_int32 silk_SMULWW(opus_int32 a32, opus_int32 b32){ |
+static OPUS_INLINE opus_int32 silk_SMULWW(opus_int32 a32, opus_int32 b32){ |
opus_int32 ret; |
/* Nb will be counted in sub-macros*/ |
ret = silk_MLA(silk_SMULWB((a32), (b32)), (a32), silk_RSHIFT_ROUND((b32), 16)); |
@@ -612,7 +612,7 @@ static inline opus_int32 silk_SMULWW(opus_int32 a32, opus_int32 b32){ |
} |
#undef silk_SMLAWW |
-static inline opus_int32 silk_SMLAWW(opus_int32 a32, opus_int32 b32, opus_int32 c32){ |
+static OPUS_INLINE opus_int32 silk_SMLAWW(opus_int32 a32, opus_int32 b32, opus_int32 c32){ |
opus_int32 ret; |
/* Nb will be counted in sub-macros*/ |
ret = silk_MLA(silk_SMLAWB((a32), (b32), (c32)), (b32), silk_RSHIFT_ROUND((c32), 16)); |
@@ -620,26 +620,26 @@ static inline opus_int32 silk_SMLAWW(opus_int32 a32, opus_int32 b32, opus_int32 |
} |
#undef silk_min_int |
-static inline opus_int silk_min_int(opus_int a, opus_int b) |
+static OPUS_INLINE opus_int silk_min_int(opus_int a, opus_int b) |
{ |
ops_count += 1; |
return (((a) < (b)) ? (a) : (b)); |
} |
#undef silk_min_16 |
-static inline opus_int16 silk_min_16(opus_int16 a, opus_int16 b) |
+static OPUS_INLINE opus_int16 silk_min_16(opus_int16 a, opus_int16 b) |
{ |
ops_count += 1; |
return (((a) < (b)) ? (a) : (b)); |
} |
#undef silk_min_32 |
-static inline opus_int32 silk_min_32(opus_int32 a, opus_int32 b) |
+static OPUS_INLINE opus_int32 silk_min_32(opus_int32 a, opus_int32 b) |
{ |
ops_count += 1; |
return (((a) < (b)) ? (a) : (b)); |
} |
#undef silk_min_64 |
-static inline opus_int64 silk_min_64(opus_int64 a, opus_int64 b) |
+static OPUS_INLINE opus_int64 silk_min_64(opus_int64 a, opus_int64 b) |
{ |
ops_count += 1; |
return (((a) < (b)) ? (a) : (b)); |
@@ -647,26 +647,26 @@ static inline opus_int64 silk_min_64(opus_int64 a, opus_int64 b) |
/* silk_min() versions with typecast in the function call */ |
#undef silk_max_int |
-static inline opus_int silk_max_int(opus_int a, opus_int b) |
+static OPUS_INLINE opus_int silk_max_int(opus_int a, opus_int b) |
{ |
ops_count += 1; |
return (((a) > (b)) ? (a) : (b)); |
} |
#undef silk_max_16 |
-static inline opus_int16 silk_max_16(opus_int16 a, opus_int16 b) |
+static OPUS_INLINE opus_int16 silk_max_16(opus_int16 a, opus_int16 b) |
{ |
ops_count += 1; |
return (((a) > (b)) ? (a) : (b)); |
} |
#undef silk_max_32 |
-static inline opus_int32 silk_max_32(opus_int32 a, opus_int32 b) |
+static OPUS_INLINE opus_int32 silk_max_32(opus_int32 a, opus_int32 b) |
{ |
ops_count += 1; |
return (((a) > (b)) ? (a) : (b)); |
} |
#undef silk_max_64 |
-static inline opus_int64 silk_max_64(opus_int64 a, opus_int64 b) |
+static OPUS_INLINE opus_int64 silk_max_64(opus_int64 a, opus_int64 b) |
{ |
ops_count += 1; |
return (((a) > (b)) ? (a) : (b)); |
@@ -674,7 +674,7 @@ static inline opus_int64 silk_max_64(opus_int64 a, opus_int64 b) |
#undef silk_LIMIT_int |
-static inline opus_int silk_LIMIT_int(opus_int a, opus_int limit1, opus_int limit2) |
+static OPUS_INLINE opus_int silk_LIMIT_int(opus_int a, opus_int limit1, opus_int limit2) |
{ |
opus_int ret; |
ops_count += 6; |
@@ -686,7 +686,7 @@ static inline opus_int silk_LIMIT_int(opus_int a, opus_int limit1, opus_int limi |
} |
#undef silk_LIMIT_16 |
-static inline opus_int16 silk_LIMIT_16(opus_int16 a, opus_int16 limit1, opus_int16 limit2) |
+static OPUS_INLINE opus_int16 silk_LIMIT_16(opus_int16 a, opus_int16 limit1, opus_int16 limit2) |
{ |
opus_int16 ret; |
ops_count += 6; |
@@ -699,7 +699,7 @@ return(ret); |
#undef silk_LIMIT_32 |
-static inline opus_int silk_LIMIT_32(opus_int32 a, opus_int32 limit1, opus_int32 limit2) |
+static OPUS_INLINE opus_int silk_LIMIT_32(opus_int32 a, opus_int32 limit1, opus_int32 limit2) |
{ |
opus_int32 ret; |
ops_count += 6; |