DSP Run-Time Library Reference
clip
clip
Synopsis
#include <math.h>
int clip (int parm1, int parm2)
long int lclip (long int parm1, long int parm2)
float fclipf (float parm1, float parm2)
double fclip (double parm1, double parm2)
fract16 clip_fr16 (fract16 parm1, fract16 parm2)
Description
This function clips a value if it is too large.
Algorithm
if (|parm1| < |parm2|)
return(parm1)
else
return(|parm2| * signof(parm1))
Domain
Full range for various input parameter types.
4-44
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers