This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch, ibm/2.12/master, updated. glibc-2.12.1-27-gf302527
- From: luisgpm at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 1 Nov 2010 05:14:55 -0000
- Subject: GNU C Library master sources branch, ibm/2.12/master, updated. glibc-2.12.1-27-gf302527
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, ibm/2.12/master has been updated
via f302527f2cb6d915fee932e08776990bab959578 (commit)
from e5aca84376a080f15e917d3bd77d348ad84e8bbe (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=f302527f2cb6d915fee932e08776990bab959578
commit f302527f2cb6d915fee932e08776990bab959578
Author: Michael Meissner <meissner@linux.vnet.ibm.com>
Date: Tue Oct 19 12:49:05 2010 -0400
Add C99 FP_FAST_FMA{,F,L} macros to math.h
(cherry picked from commit d20501241ea423e477b357d93147530987e0d89e)
diff --git a/ChangeLog b/ChangeLog
index 5ad5234..4cfa3be 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2010-10-19 Michael Meissner <meissner@linux.vnet.ibm.com>
+
+ * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
+ builtins, define the macros in the C99 standard.
+ (FP_FAST_FMAF): Likewise.
+ (FP_FAST_FMAL): Likewise.
+ * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
+ multiply/add.
+ (FP_FAST_FMAF): Likewise.
+
2010-10-15 Jakub Jelinek <jakub@redhat.com>
[BZ #3268]
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
diff --git a/sysdeps/powerpc/bits/mathdef.h b/sysdeps/powerpc/bits/mathdef.h
index b79cc6f..0c99248 100644
--- a/sysdeps/powerpc/bits/mathdef.h
+++ b/sysdeps/powerpc/bits/mathdef.h
@@ -61,4 +61,8 @@ typedef double double_t;
# define FP_ILOGB0 (-2147483647)
# define FP_ILOGBNAN (2147483647)
+/* The powerpc has a combined multiply/add instruction. */
+# define FP_FAST_FMA 1
+# define FP_FAST_FMAF 1
+
#endif /* ISO C99 */
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 10 ++++++++++
bits/mathdef.h | 14 ++++++++++++++
sysdeps/powerpc/bits/mathdef.h | 4 ++++
3 files changed, 28 insertions(+), 0 deletions(-)
hooks/post-receive
--
GNU C Library master sources