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)(e) TrigonometricFunctionsushort sine (DATA *x, DATA *r, ushort nx)ushort atan2_16 (DATA *i, DATA *q, DATA *r, ushort nx)ushort atan16 (DATA *x, DATA *r, ushort nx)Descriptionsine of a vectorFour quadrant inverse tangent of a vectorArctan of a vector(f) MathFunctionsushort add (DATA *x, DATA *y, DATA *r, ushort nx,ushort scale)ushort expn (DATA *x, DATA *r, ushort nx)short bexp (DATA *x, ushort nx)ushort logn (DATA *x, LDATA *r, ushort nx)ushort log_2 (DATA *x, LDATA *r, ushort nx)ushort log_10 (DATA *x, LDATA *r, ushort nx)short maxidx (DATA *x, ushort ng, ushort ng_size)DescriptionOptimized vector additionExponent of a vectorExponent of all values in a vectorNatural log of a vectorLog base 2 of a vectorLog base 10 of a vectorIndex for maximum magnitude in a vectorshort maxidx34 (DATA *x, ushort nx) Index of the maximum element of a vector ≤ 34short maxval (DATA *x, ushort nx)void maxvec (DATA *x, ushort nx, DATA *r_val,DATA *r_idx)short minidx (DATA *x, ushort nx)short minval (DATA *x, ushort nx)void minvec (DATA *x, ushort nx, DATA *r_val,DATA *r_idx)ushort mul32 (LDATA *x, LDATA *y, LDATA *r, ushort nx)short neg (DATA *x, DATA *r, ushort nx)short neg32 (LDATA *x, LDATA *r, ushort nx)short power (DATA *x, LDATA *r, ushort nx)void recip16 (DATA *x, DATA *r, DATA *rexp, ushort nx)void ldiv16 (LDATA *x, DATA *y, DATA *r, DATA *rexp,ushort nx)Maximum magnitude in a vectorIndex and value of the maximum element of avectorIndex for minimum magnitude in a vectorMinimum element in a vectorIndex and value of the minimum element of avector32-bit vector multiply16-bit vector negate32-bit vector negatesum of squares of a vector (power)Vector reciprocal32-bit by 16-bit long divisionFunction Descriptions4-5

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

Saved successfully!

Ooh no, something went wrong!