]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - bits/mathdef.h
Add C99 FP_FAST_FMA{,F,L} macros to math.h
[thirdparty/glibc.git] / bits / mathdef.h
index 00c67241a097f2f0bfec845b45b1d723715985ce..973438097e89a12f5dc68737c2ec9a197e81cdf8 100644 (file)
@@ -34,6 +34,20 @@ typedef double double_t;     /* `double' expressions are evaluated as
 # define FP_ILOGB0     (-2147483647)
 # define FP_ILOGBNAN   2147483647
 
+/* The GCC 4.6 compiler will define __FP_FAST_FMA{,F,L} if the fma{,f,l}
+   builtins are supported.  */
+#if __FP_FAST_FMA
+# define FP_FAST_FMA 1
+#endif
+
+#if __FP_FAST_FMAF
+# define FP_FAST_FMAF 1
+#endif
+
+#if __FP_FAST_FMAL
+# define FP_FAST_FMAL 1
+#endif
+
 #endif /* ISO C99 */
 
 #ifndef __NO_LONG_DOUBLE_MATH