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.
@param GSP0_TABLE[256*9] GSP0 terms array.
@param errCoefs[9] Array of error coefficients. Must be double-word aligned.
@param 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.