CSI-DSP  Version 1.0.0
CSI DSP Software Library
Functions
Vector Absolute Max value

Functions

void csky_abs_max_q15 (q15_t *pSrc, q15_t *pDst, uint32_t blockSize)
 Q15 vector absolute max value. More...
 
void csky_abs_max_q31 (q31_t *pSrc, q31_t *pDst, uint32_t blockSize)
 Q31 vector absolute max value. More...
 

Description

compute the absolute value of every element, and return the maxmum value of them.

    *pDst = max(abs(pSrc[n])),   0 <= n < blockSize.

support for q15 and q31 format.

Function Documentation

void csky_abs_max_q15 ( q15_t pSrc,
q15_t pDst,
uint32_t  blockSize 
)
Parameters
[in]*pSrcpoints to the input buffer
[out]*pDstpoints to the output buffer
[in]blockSizenumber of samples in each vector
Returns
none.

Scaling and Overflow Behavior:

The function uses saturating arithmetic. The Q15 value -1 (0x8000) will be saturated to the maximum allowable positive value 0x7FFF.
void csky_abs_max_q31 ( q31_t pSrc,
q31_t pDst,
uint32_t  blockSize 
)
Parameters
[in]*pSrcpoints to the input buffer
[out]*pDstpoints to the output buffer
[in]blockSizenumber of samples in each vector
Returns
none.

Scaling and Overflow Behavior:

The function uses saturating arithmetic. The Q31 value -1 (0x80000000) will be saturated to the maximum allowable positive value 0x7FFFFFFF.