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