Clip - Analog Devices VISUALDSP++ 3.5 Manual

C/c++ compiler and library for adsp-219x processors
Hide thumbs Also See for VISUALDSP++ 3.5:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Related Products for Analog Devices VISUALDSP++ 3.5

Table of Contents