// This code is Public Domain. Use, modify, and redistribute at will.
// ----------------------------------------------------------------------------
-// ----------------------------------------------------------------------------
-// C++
+double fabs( double x ) { /* TODO */ };
-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 */ };
+/* Therx code
+{
+ return ( x < 0 ) ? -x : x;
+}
+*/
-long abs( long i ) { /* TODO */ };
-long long abs( long long i ) { /* TODO */ };
+/* PDPC code - unreviewed
+{
+ if (x < 0.0)
+ {
+ x = -x;
+ }
+ return (x);
+}
+*/
-// ----------------------------------------------------------------------------
-// Standard C
-
-double fabs( double x ) { /* TODO */ };
float fabsf( float x ) { /* TODO */ };
long double fabsl( long double x ) { /* TODO */ };