musl-tcc/src/math/powerpc/fabsf.c

16 lines
158 B
C

#include <math.h>
#ifdef _SOFT_FLOAT
#include "../fabsf.c"
#else
float fabsf(float x)
{
__asm__ ("fabs %0, %1" : "=f"(x) : "f"(x));
return x;
}
#endif