diff options
Diffstat (limited to 'src/math/powerpc/fabs.c')
-rw-r--r-- | src/math/powerpc/fabs.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/math/powerpc/fabs.c b/src/math/powerpc/fabs.c new file mode 100644 index 00000000..f6ec4433 --- /dev/null +++ b/src/math/powerpc/fabs.c @@ -0,0 +1,15 @@ +#include <math.h> + +#ifdef _SOFT_FLOAT + +#include "../fabs.c" + +#else + +double fabs(double x) +{ + __asm__ ("fabs %0, %1" : "=d"(x) : "d"(x)); + return x; +} + +#endif |