diff --git a/silk/fixed/vector_ops_FIX.c b/silk/fixed/vector_ops_FIX.c index 509c8b35a112728a37037e78f015606c246c48d5..ad8f07fde5af18c2cc18000848f52d079c77605e 100644 --- a/silk/fixed/vector_ops_FIX.c +++ b/silk/fixed/vector_ops_FIX.c @@ -30,6 +30,7 @@ POSSIBILITY OF SUCH DAMAGE. #endif #include "SigProc_FIX.h" +#include "pitch.h" /* Copy and multiply a vector by a constant */ void silk_scale_copy_vector16( @@ -73,12 +74,16 @@ opus_int32 silk_inner_prod_aligned( const opus_int len /* I vector lengths */ ) { +#ifdef FIXED_POINT + return celt_inner_prod(inVec1, inVec2, len); +#else opus_int i; opus_int32 sum = 0; for( i = 0; i < len; i++ ) { sum = silk_SMLABB( sum, inVec1[ i ], inVec2[ i ] ); } return sum; +#endif } opus_int64 silk_inner_prod16_aligned_64(