Provide FP_FAST_FMA{,F,L} definitions for x86/x86-64.
authorUlrich Drepper <drepper@gmail.com>
Tue, 19 Oct 2010 16:56:42 +0000 (12:56 -0400)
committerUlrich Drepper <drepper@gmail.com>
Tue, 19 Oct 2010 16:56:42 +0000 (12:56 -0400)
ChangeLog
bits/mathdef.h
sysdeps/i386/bits/mathdef.h
sysdeps/powerpc/bits/mathdef.h
sysdeps/x86_64/bits/mathdef.h

index f90f30306989c71ceaf38aa55d784844c2c831ae..e162666af7eff5f34b8d9b3bbd713aef8eab9bfa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2010-10-19  Ulrich Drepper  <drepper@gmail.com>
+
+       * sysdeps/i386/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/x86_64/bits/mathdef.h: Likewise.
+
+       * bits/mathdef.h: Update copyright year.
+       * sysdeps/powerpc/bits/mathdef.h: Likewise.
+
 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
index 973438097e89a12f5dc68737c2ec9a197e81cdf8..3cea5847cffb3ed4812bed8d8e866b3711460f5f 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998, 1999, 2000, 2004 Free Software Foundation, Inc.
+/* Copyright (C) 1997,1998,1999,2000,2004,2010 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
index ec42ed5df9c237fda33599c14a331938a415aa62..479eb96f926f6619655caf71d1cd4202790e7757 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998, 1999, 2000, 2004 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 1999, 2000, 2004, 2010 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -43,4 +43,18 @@ typedef long double double_t;        /* `double' expressions are evaluated as
 # define FP_ILOGB0     (-2147483647 - 1)
 # define FP_ILOGBNAN   (-2147483647 - 1)
 
+/* 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 */
index 0c99248bedd764e1614d8eedb5d3eabcaefe9ddd..7723f0caaf58d07d629c614143dfdcf5e133601b 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997,1998,1999,2000,2003,2004,2006
+/* Copyright (C) 1997,1998,1999,2000,2003,2004,2006,2010
        Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
index 7b1618959048f3b49c1b5e33ba50f5a7f1dac28c..91463921b188148f4f3562eed2960751aa97a932 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001, 2004 Free Software Foundation, Inc.
+/* Copyright (C) 2001, 2004, 2010 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -45,4 +45,18 @@ typedef long double double_t;        /* `double' expressions are evaluated as
 # define FP_ILOGB0     (-2147483647 - 1)
 # define FP_ILOGBNAN   (-2147483647 - 1)
 
+/* 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 */