aboutsummaryrefslogtreecommitdiff
path: root/bits
diff options
context:
space:
mode:
authorMichael Meissner <meissner@linux.vnet.ibm.com>2010-10-19 12:49:05 -0400
committerUlrich Drepper <drepper@gmail.com>2010-10-19 12:49:05 -0400
commitd20501241ea423e477b357d93147530987e0d89e (patch)
treed3f6778111be8ffde5964e2c2903a8b6fe697cdf /bits
parent6ce0bb748d7de856cb2076b41625fe7cedac5e16 (diff)
downloadglibc-d20501241ea423e477b357d93147530987e0d89e.zip
glibc-d20501241ea423e477b357d93147530987e0d89e.tar.gz
glibc-d20501241ea423e477b357d93147530987e0d89e.tar.bz2
Add C99 FP_FAST_FMA{,F,L} macros to math.h
Diffstat (limited to 'bits')
-rw-r--r--bits/mathdef.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/bits/mathdef.h b/bits/mathdef.h
index 00c6724..9734380 100644
--- a/bits/mathdef.h
+++ b/bits/mathdef.h
@@ -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