DSPF_sp_minerr
[Math]

Collaboration diagram for DSPF_sp_minerr:


Detailed Description

float DSPF_sp_minerr (const float *GSP0_TABLE, const float *errCoefs, int *restrict max_index)


Function Documentation

float DSPF_sp_minerr ( const float *  GSP0_TABLE,
const float *  errCoefs,
int *restrict  max_index 
)

Performs a dot product on 256 pairs of 9 element vectors and searches for the pair of vectors which produces the maximum dot product result. This is a large part of the VSELP vocoder codebook search. The function stores the index to the first element of the 9-element vector that resulted in the maximum dot product in the memory location Pointed by max_index. The maximum dot product value is returned by the function.

Parameters:
GSP0_TABLE[256*9] GSP0 terms array.
errCoefs[9] Array of error coefficients. Must be double-word aligned.
max_index Index to GSP0_TABLE[max_index], the first element of the 9-element vector that resulted in the maximum dot product.
Algorithm:
DSPF_sp_maxval_cn.c is the natural C equivalent of the optimized linear assembly code without restrictions. Note that the linear assembly code is optimized and restrictions may apply.
Assumptions:
errCoefs must be double-word aligned
Implementation Notes:
Interruptibility: The code is interruptible.
Endian Support: The code supports both big and little endian modes.


Copyright 2014, Texas Instruments Incorporated