aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2010-10-19 20:09:24 +0000
committerJoseph Myers <joseph@codesourcery.com>2010-10-19 20:09:24 +0000
commitc6d5d85ccbb8e7d98a790c5dec3e7244254852a2 (patch)
treea33a7a0d9ec163523a172ddc7fe855871b40e602
parent16d6bc0bff4a2529bb7de4d664cd598a71fdd029 (diff)
downloadglibc-c6d5d85ccbb8e7d98a790c5dec3e7244254852a2.tar.xz
glibc-c6d5d85ccbb8e7d98a790c5dec3e7244254852a2.zip
Conditionally define FP_FAST_FMA* for ARM.
-rw-r--r--ChangeLog.arm5
-rw-r--r--sysdeps/arm/bits/mathdef.h16
2 files changed, 20 insertions, 1 deletions
diff --git a/ChangeLog.arm b/ChangeLog.arm
index 02affa8ce3..69a28c6ba8 100644
--- a/ChangeLog.arm
+++ b/ChangeLog.arm
@@ -1,3 +1,8 @@
+2010-10-19 Joseph Myers <joseph@codesourcery.com>
+
+ * sysdeps/arm/bits/mathdef.h (FP_FAST_FMA, FP_FAST_FMAF,
+ FP_FAST_FMAL): Define if associated GCC macros are defined.
+
2010-10-11 Joseph Myers <joseph@codesourcery.com>
* sysdeps/arm/eabi/feupdateenv.c (feupdateenv): Add
diff --git a/sysdeps/arm/bits/mathdef.h b/sysdeps/arm/bits/mathdef.h
index daca1102fc..97f5d4d227 100644
--- a/sysdeps/arm/bits/mathdef.h
+++ b/sysdeps/arm/bits/mathdef.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2000, 2004, 2006, 2007
+/* Copyright (C) 1999, 2000, 2004, 2006, 2007, 2010
Free Software Foundation, Inc.
This file is part of the GNU C Library.
@@ -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