DSP_dotprod
[Math]

Collaboration diagram for DSP_dotprod:


Detailed Description

int DSP_dotprod (short *restrict x, short *restrict y, int nx)


Function Documentation

int DSP_dotprod ( short *restrict  x,
short *restrict  y,
int  nx 
)

This routine takes two vectors and calculates their dot product. The inputs are 16-bit short data and the output is a 32-bit number.

Parameters:
x = First vector array
y = Second vector array
nx = Number of elements
Algorithm:
DSP_dotprod_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:
The input length must be a multiple of 4.
The input data x[] and y[] are stored on double-word aligned boundaries.
Implementation notes:
Endian Support: The code supports both big and little endian modes.
Interruptibility: The code is interruptible.


Copyright 2014, Texas Instruments Incorporated