mirror of https://git.musl-libc.org/git/musl
committed by
Rich Felker
2 changed files with 14 additions and 0 deletions
@ -0,0 +1,7 @@ |
|||
#include <math.h> |
|||
|
|||
double fma(double x, double y, double z) |
|||
{ |
|||
__asm__ ("madbr %0, %1, %2" : "+f"(z) : "f"(x), "f"(y)); |
|||
return z; |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
#include <math.h> |
|||
|
|||
float fmaf(float x, float y, float z) |
|||
{ |
|||
__asm__ ("maebr %0, %1, %2" : "+f"(z) : "f"(x), "f"(y)); |
|||
return z; |
|||
} |
|||
Loading…
Reference in new issue