X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fmath%2Fabs.c;fp=functions%2Fmath%2Fabs.c;h=1cd660dce46225a67b2195d38980a116c2d1435b;hb=34893ecc2200dc7017c36a54cb6c5f4c2378b5ec;hp=0000000000000000000000000000000000000000;hpb=34b76b9d65477be9c7d35cd254f44be85b3786b4;p=pdclib diff --git a/functions/math/abs.c b/functions/math/abs.c new file mode 100644 index 0000000..1cd660d --- /dev/null +++ b/functions/math/abs.c @@ -0,0 +1,29 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +double abs( double x ) { /* TODO */ }; +float abs( float x ) { /* TODO */ }; +long double abs( long double x ) { /* TODO */ }; +float fabs( float x ) { /* TODO */ }; +long double fabs( long double x ) { /* TODO */ }; + +long abs( long i ) { /* TODO */ }; +long long abs( long long i ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +double fabs( double x ) { /* TODO */ }; +float fabsf( float x ) { /* TODO */ }; +long double fabsl( long double x ) { /* TODO */ }; + +int abs( int i ) { /* TODO */ }; +long long llabs( long long i ) { /* TODO */ }; +long labs( long i ) { /* TODO */ };