Collaboration diagram for DSPF_sp_minerr:
float | DSPF_sp_minerr (const float *GSP0_TABLE, const float *errCoefs, int *restrict max_index) |
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.
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. |