DSP_w_vec
[Math]

Collaboration diagram for DSP_w_vec:


Detailed Description

void DSP_w_vec (const short *restrict x, const short *restrict y, short m, short *restrict r, int nr)


Function Documentation

void DSP_w_vec ( const short *restrict  x,
const short *restrict  y,
short  m,
short *restrict  r,
int  nr 
)

This routine is used to obtain the weighted vector sum. Both the inputs and output are 16-bit numbers

Parameters:
x = Vector being weighted
y = Summation vector
m = Weighting factor
r = Output vector
nr = Dimensions of the vectors
Algorithm:
DSP_vecsumsq_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:
nr must be a multiple of 8 and >= 8.
Vectors x[ ] y[ ] and r[ ] must be double-word aligned.
m is not -32768.
Implementation notes:
Endian Support: The code supports both big and little endian modes.
Interruptibility: The code is interruptible.


Copyright 2014, Texas Instruments Incorporated