CMSIS-DSP  Version 1.10.0
CMSIS DSP Software Library
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Elementwise clipping

Functions

void arm_clip_f16 (const float16_t *pSrc, float16_t *pDst, float16_t low, float16_t high, uint32_t numSamples)
 Elementwise floating-point clipping. More...
 
void arm_clip_f32 (const float32_t *pSrc, float32_t *pDst, float32_t low, float32_t high, uint32_t numSamples)
 Elementwise floating-point clipping. More...
 
void arm_clip_q15 (const q15_t *pSrc, q15_t *pDst, q15_t low, q15_t high, uint32_t numSamples)
 Elementwise fixed-point clipping. More...
 
void arm_clip_q31 (const q31_t *pSrc, q31_t *pDst, q31_t low, q31_t high, uint32_t numSamples)
 Elementwise fixed-point clipping. More...
 
void arm_clip_q7 (const q7_t *pSrc, q7_t *pDst, q7_t low, q7_t high, uint32_t numSamples)
 Elementwise fixed-point clipping. More...
 

Description

Element-by-element clipping of a value.

The value is constrained between 2 bounds.

There are separate functions for floating-point, Q7, Q15, and Q31 data types.

Function Documentation

void arm_clip_f16 ( const float16_t *  pSrc,
float16_t *  pDst,
float16_t  low,
float16_t  high,
uint32_t  numSamples 
)
Parameters
[in]pSrcpoints to input values
[out]pDstpoints to output clipped values
[in]lowlower bound
[in]highhigher bound
[in]numSamplesnumber of samples to clip
Returns
none
void arm_clip_f32 ( const float32_t pSrc,
float32_t pDst,
float32_t  low,
float32_t  high,
uint32_t  numSamples 
)
Parameters
[in]pSrcpoints to input values
[out]pDstpoints to output clipped values
[in]lowlower bound
[in]highhigher bound
[in]numSamplesnumber of samples to clip
Returns
none
void arm_clip_q15 ( const q15_t pSrc,
q15_t pDst,
q15_t  low,
q15_t  high,
uint32_t  numSamples 
)
Parameters
[in]pSrcpoints to input values
[out]pDstpoints to output clipped values
[in]lowlower bound
[in]highhigher bound
[in]numSamplesnumber of samples to clip
Returns
none
void arm_clip_q31 ( const q31_t pSrc,
q31_t pDst,
q31_t  low,
q31_t  high,
uint32_t  numSamples 
)
Parameters
[in]pSrcpoints to input values
[out]pDstpoints to output clipped values
[in]lowlower bound
[in]highhigher bound
[in]numSamplesnumber of samples to clip
Returns
none
void arm_clip_q7 ( const q7_t pSrc,
q7_t pDst,
q7_t  low,
q7_t  high,
uint32_t  numSamples 
)
Parameters
[in]pSrcpoints to input values
[out]pDstpoints to output clipped values
[in]lowlower bound
[in]highhigher bound
[in]numSamplesnumber of samples to clip
Returns
none