aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/x86_64
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/x86_64')
-rw-r--r--sysdeps/x86_64/dla.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sysdeps/x86_64/dla.h b/sysdeps/x86_64/dla.h
new file mode 100644
index 0000000000..bb6c8c4be0
--- /dev/null
+++ b/sysdeps/x86_64/dla.h
@@ -0,0 +1,9 @@
+#ifdef __FMA4__
+# define DLA_FMA(x,y,z) \
+ ({ double __zz; \
+ asm ("vfmsubsd %3, %2, %1, %0" \
+ : "=x" (__zz) : "x" (x), "xm" (y), "x" (z)); \
+ __zz; })
+#endif
+
+#include "sysdeps/ieee754/dbl-64/dla.h"