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

16 lines
199 B
C

#include <math.h>
#ifdef _SOFT_FLOAT
#include "../fmaf.c"
#else
float fmaf(float x, float y, float z)
{
__asm__("fmadds %0, %1, %2, %3" : "=f"(x) : "f"(x), "f"(y), "f"(z));
return x;
}
#endif