summaryrefslogtreecommitdiff
path: root/sysdeps/powerpc/fpu/math-use-builtins.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/powerpc/fpu/math-use-builtins.h')
-rw-r--r--sysdeps/powerpc/fpu/math-use-builtins.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sysdeps/powerpc/fpu/math-use-builtins.h b/sysdeps/powerpc/fpu/math-use-builtins.h
index 957216a191..72e28ec9cc 100644
--- a/sysdeps/powerpc/fpu/math-use-builtins.h
+++ b/sysdeps/powerpc/fpu/math-use-builtins.h
@@ -66,6 +66,12 @@
#define USE_FMA_BUILTIN 1
#define USE_FMAF_BUILTIN 1
#define USE_FMAL_BUILTIN 0
-#define USE_FMAF128_BUILTIN 0
+
+/* This is not available for P8 or BE targets. */
+#ifdef __FP_FAST_FMAF128
+# define USE_FMAF128_BUILTIN 1
+#else
+# define USE_FMAF128_BUILTIN 0
+#endif
#endif