21.07.2015 Views

"TMS320C55x DSP Library DSPLIB Programmer's Reference"

"TMS320C55x DSP Library DSPLIB Programmer's Reference"

"TMS320C55x DSP Library DSPLIB Programmer's Reference"

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>DSP</strong>LIB FunctionsTable 4–2. Summary Table (Continued)(f) Math (Continued)Functionsushort sqrt_16 (DATA *x, DATA *r, short nx)short sub (DATA *x, DATA *y, DATA *r, ushort nx,ushort scale)DescriptionSquare root of a vectorVector subtraction(g) MatrixFunctionsushort mmul (DATA *x1, short row1, short col1,DATA *x2, short row2, short col2, DATA *r)ushort mtrans (DATA *x, short row, short col, DATA *r)Descriptionmatrix multiplymatrix transponse(h) MiscellaneousFunctionsushort fltoq15 (float *x, DATA *r, ushort nx)ushort q15tofl (DATA *x, float *r, ushort nx)ushort rand16 (DATA *r, ushort nr)void rand16init(void)DescriptionFloating-point to Q15 conversionQ15 to floating-point conversionRandom number generationRandom number generation initialization4-6

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!