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