DSP_dotp_sqr
[Math]

Collaboration diagram for DSP_dotp_sqr:


Detailed Description

int DSP_dotp_sqr (int G, const short *x, const short *y, int *restrict r, int nx)


Function Documentation

int DSP_dotp_sqr ( int  G,
const short *  x,
const short *  y,
int *restrict  r,
int  nx 
)

This routine performs an nx element dot product of x[ ] and y[ ] and stores it in r. It also squares each element of y[ ] and accumulates it in G. This computation of G is used in the VSELP coder.

Parameters:
G = Calculated value of G (used in the VSELP coder)
x = First vector array
y = Second vector array
r = Result of vector dot product of x and y
nx = Number of elements
Algorithm:
DSP_dotp_sqr_cn.c is the natural C equivalent of the optimized intrinsic C code without restrictions note that the intrinsic C code is optimized and restrictions may apply.
Assumptions:
nx must be a multiple of 4 and greater than or equal to 12.
Implementation notes:
Endian Support: The code supports both big and little endian modes.
Interruptibility: The code is interruptible.


Copyright 2014, Texas Instruments Incorporated