1 // ----------------------------------------------------------------------------
3 // ----------------------------------------------------------------------------
4 // Public Domain C Library - http://pdclib.sourceforge.net
5 // This code is Public Domain. Use, modify, and redistribute at will.
6 // ----------------------------------------------------------------------------
8 // ----------------------------------------------------------------------------
11 float copysign( float x, float y ) { /* TODO */ };
12 long double copysign( long double x, long double y ) { /* TODO */ };
14 // ----------------------------------------------------------------------------
17 double copysign( double x, double y ) { /* TODO */ };
23 return ( x < 0 ) ? x : -x;
27 return ( x < 0 ) ? -x : x;
31 float copysignf( float x, float y ) { /* TODO */ };
32 long double copysignl( long double x, long double y ) { /* TODO */ };