[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commits] r11819 - in /fsf/trunk/libc: ./ bits/ sysdeps/i386/bits/ sysdeps/powerpc/bits/ sysdeps/x86_64/bits/
- To: commits@xxxxxxxxxx
- Subject: [commits] r11819 - in /fsf/trunk/libc: ./ bits/ sysdeps/i386/bits/ sysdeps/powerpc/bits/ sysdeps/x86_64/bits/
- From: eglibc@xxxxxxxxxx
- Date: Wed, 20 Oct 2010 07:03:15 -0000
Author: eglibc
Date: Wed Oct 20 00:03:14 2010
New Revision: 11819
Log:
Import glibc-mainline for 2010-10-20
Modified:
fsf/trunk/libc/ChangeLog
fsf/trunk/libc/bits/mathdef.h
fsf/trunk/libc/sysdeps/i386/bits/mathdef.h
fsf/trunk/libc/sysdeps/powerpc/bits/mathdef.h
fsf/trunk/libc/sysdeps/x86_64/bits/mathdef.h
Modified: fsf/trunk/libc/ChangeLog
==============================================================================
--- fsf/trunk/libc/ChangeLog (original)
+++ fsf/trunk/libc/ChangeLog Wed Oct 20 00:03:14 2010
@@ -1,3 +1,39 @@
+2010-10-19 Ulrich Drepper <drepper@xxxxxxxxx>
+
+ * 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@xxxxxxxxxxxxxxxxxx>
+
+ * 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@xxxxxxxxxx>
+
+ [BZ #3268]
+ * math/libm-test.inc (fma_test): Some new testcases.
+ * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
+ * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
+ y and infinite z. Do multiplication by C already in long double.
+ * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
+ * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
+ y and infinite z. Do bitwise or of inexact bit into u.d.
+ * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
+ * sysdeps/i386/fpu/s_fmaf.S: Removed.
+ * sysdeps/i386/fpu/s_fma.S: Removed.
+ * sysdeps/i386/fpu/s_fmal.S: Removed.
+
2010-10-16 Jakub Jelinek <jakub@xxxxxxxxxx>
[BZ #3268]
Modified: fsf/trunk/libc/bits/mathdef.h
==============================================================================
--- fsf/trunk/libc/bits/mathdef.h (original)
+++ fsf/trunk/libc/bits/mathdef.h Wed Oct 20 00:03:14 2010
@@ -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
@@ -34,6 +34,20 @@
# 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
Modified: fsf/trunk/libc/sysdeps/i386/bits/mathdef.h
==============================================================================
--- fsf/trunk/libc/sysdeps/i386/bits/mathdef.h (original)
+++ fsf/trunk/libc/sysdeps/i386/bits/mathdef.h Wed Oct 20 00:03:14 2010
@@ -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 @@
# 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 */
Modified: fsf/trunk/libc/sysdeps/powerpc/bits/mathdef.h
==============================================================================
--- fsf/trunk/libc/sysdeps/powerpc/bits/mathdef.h (original)
+++ fsf/trunk/libc/sysdeps/powerpc/bits/mathdef.h Wed Oct 20 00:03:14 2010
@@ -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.
@@ -61,4 +61,8 @@
# 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 */
Modified: fsf/trunk/libc/sysdeps/x86_64/bits/mathdef.h
==============================================================================
--- fsf/trunk/libc/sysdeps/x86_64/bits/mathdef.h (original)
+++ fsf/trunk/libc/sysdeps/x86_64/bits/mathdef.h Wed Oct 20 00:03:14 2010
@@ -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 @@
# 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 */