Index: silk/fixed/vector_ops_FIX.c |
diff --git a/silk/fixed/vector_ops_FIX.c b/silk/fixed/vector_ops_FIX.c |
index d62060243c98629c4ee3fd17a1d75ac1547f7cce..509c8b35a112728a37037e78f015606c246c48d5 100644 |
--- a/silk/fixed/vector_ops_FIX.c |
+++ b/silk/fixed/vector_ops_FIX.c |
@@ -8,11 +8,11 @@ this list of conditions and the following disclaimer. |
- Redistributions in binary form must reproduce the above copyright |
notice, this list of conditions and the following disclaimer in the |
documentation and/or other materials provided with the distribution. |
-- Neither the name of Internet Society, IETF or IETF Trust, nor the |
+- Neither the name of Internet Society, IETF or IETF Trust, nor the |
names of specific contributors, may be used to endorse or promote |
products derived from this software without specific prior written |
permission. |
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” |
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
@@ -94,34 +94,3 @@ opus_int64 silk_inner_prod16_aligned_64( |
} |
return sum; |
} |
- |
-/* Function that returns the maximum absolut value of the input vector */ |
-opus_int16 silk_int16_array_maxabs( /* O Maximum absolute value, max: 2^15-1 */ |
- const opus_int16 *vec, /* I Input vector [len] */ |
- const opus_int32 len /* I Length of input vector */ |
-) |
-{ |
- opus_int32 max = 0, i, lvl = 0, ind; |
- if( len == 0 ) return 0; |
- |
- ind = len - 1; |
- max = silk_SMULBB( vec[ ind ], vec[ ind ] ); |
- for( i = len - 2; i >= 0; i-- ) { |
- lvl = silk_SMULBB( vec[ i ], vec[ i ] ); |
- if( lvl > max ) { |
- max = lvl; |
- ind = i; |
- } |
- } |
- |
- /* Do not return 32768, as it will not fit in an int16 so may lead to problems later on */ |
- if( max >= 1073676289 ) { /* (2^15-1)^2 = 1073676289 */ |
- return( silk_int16_MAX ); |
- } else { |
- if( vec[ ind ] < 0 ) { |
- return( -vec[ ind ] ); |
- } else { |
- return( vec[ ind ] ); |
- } |
- } |
-} |