diff options
author | Gregory Maxwell <greg@xiph.org> | 2011-10-10 21:59:30 +0400 |
---|---|---|
committer | Gregory Maxwell <greg@xiph.org> | 2011-10-11 04:53:48 +0400 |
commit | a355d74efb9aa0b490e0b39fd587a1f996069392 (patch) | |
tree | 82975ac4f11dbac48b3936d10edcbaea9941abc0 /silk/inner_prod_aligned.c | |
parent | 3195f6cdb985b2818683a30bdd5298895694bd2d (diff) |
Move a number of files and functions which are only used by fixed point builds from silk/ to silk/fixed/.
I attempted to not break the msvc projects, but I can't test them.
Diffstat (limited to 'silk/inner_prod_aligned.c')
-rw-r--r-- | silk/inner_prod_aligned.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/silk/inner_prod_aligned.c b/silk/inner_prod_aligned.c index bf00a749..9c8fbff2 100644 --- a/silk/inner_prod_aligned.c +++ b/silk/inner_prod_aligned.c @@ -31,26 +31,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "SigProc_FIX.h" -/* sum= for(i=0;i<len;i++)inVec1[i]*inVec2[i]; --- inner product */ -/* Note for ARM asm: */ -/* * inVec1 and inVec2 should be at least 2 byte aligned. (Or defined as short/int16) */ -/* * len should be positive 16bit integer. */ -/* * only when len>6, memory access can be reduced by half. */ - -opus_int32 silk_inner_prod_aligned( - const opus_int16 *const inVec1, /* I input vector 1 */ - const opus_int16 *const inVec2, /* I input vector 2 */ - const opus_int len /* I vector lengths */ -) -{ - opus_int i; - opus_int32 sum = 0; - for( i = 0; i < len; i++ ) { - sum = silk_SMLABB( sum, inVec1[ i ], inVec2[ i ] ); - } - return sum; -} - opus_int32 silk_inner_prod_aligned_scale( const opus_int16 *const inVec1, /* I input vector 1 */ const opus_int16 *const inVec2, /* I input vector 2 */ @@ -65,17 +45,3 @@ opus_int32 silk_inner_prod_aligned_scale( } return sum; } - -opus_int64 silk_inner_prod16_aligned_64( - const opus_int16 *inVec1, /* I input vector 1 */ - const opus_int16 *inVec2, /* I input vector 2 */ - const opus_int len /* I vector lengths */ -) -{ - opus_int i; - opus_int64 sum = 0; - for( i = 0; i < len; i++ ) { - sum = silk_SMLALBB( sum, inVec1[ i ], inVec2[ i ] ); - } - return sum; -} |