1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include <math.h> #if defined(_SOFT_FLOAT) || defined(__NO_FPRS__) #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