diff options
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/x86_64/fpu/dla.h (renamed from sysdeps/x86_64/dla.h) | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sysdeps/x86_64/dla.h b/sysdeps/x86_64/fpu/dla.h index 6fe8f74..fa2d52b 100644 --- a/sysdeps/x86_64/dla.h +++ b/sysdeps/x86_64/fpu/dla.h @@ -1,10 +1,17 @@ +#include <features.h> + #ifdef __FMA4__ -# define DLA_FMS(x,y,z) \ +# if __GNUC_PREREQ (4, 6) +# define DLA_FMS(x,y,z) \ + __builtin_fma (x, y, -(z)) +# else +# define DLA_FMS(x,y,z) \ ({ double __z; \ asm ("vfmsubsd %3, %2, %1, %0" \ : "=x" (__z) \ : "x" ((double) (x)), "xm" ((double) (y)) , "x" ((double) (z))); \ __z; }) +# endif #endif #include "sysdeps/ieee754/dbl-64/dla.h" |