copysign
copy the sign
Synopsis
#include <math.h>
float copysignf (float parm1, float parm2)
double copysign (double parm1, double parm2)
fract16 copysign_fr16 (fract16 parm1, fract16 parm2)
Description
This function copies the sign of the second argument to the first
argument.
Algorithm
return (|parm1| * copysignof(parm2))
Domain
Full range for type of parameters used.
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
DSP Run-Time Library
4-51
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers