[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commits] r17210 - in /fsf/trunk/libc: ./ manual/ math/ sysdeps/gnu/ sysdeps/ieee754/dbl-64/ sysdeps/ieee754/flt-32/ sysdeps/ieee754/l...
- To: commits@xxxxxxxxxx
- Subject: [Commits] r17210 - in /fsf/trunk/libc: ./ manual/ math/ sysdeps/gnu/ sysdeps/ieee754/dbl-64/ sysdeps/ieee754/flt-32/ sysdeps/ieee754/l...
- From: eglibc@xxxxxxxxxx
- Date: Mon, 20 Feb 2012 00:01:46 -0000
Author: eglibc
Date: Mon Feb 20 00:01:45 2012
New Revision: 17210
Log:
Import glibc-mainline for 2012-02-20
Modified:
fsf/trunk/libc/ChangeLog
fsf/trunk/libc/NEWS
fsf/trunk/libc/manual/arith.texi
fsf/trunk/libc/manual/errno.texi
fsf/trunk/libc/manual/nss.texi
fsf/trunk/libc/manual/string.texi
fsf/trunk/libc/manual/users.texi
fsf/trunk/libc/math/w_acos.c
fsf/trunk/libc/math/w_acosf.c
fsf/trunk/libc/math/w_acosh.c
fsf/trunk/libc/math/w_acoshf.c
fsf/trunk/libc/math/w_acoshl.c
fsf/trunk/libc/math/w_acosl.c
fsf/trunk/libc/math/w_asin.c
fsf/trunk/libc/math/w_asinf.c
fsf/trunk/libc/math/w_asinl.c
fsf/trunk/libc/math/w_atanh.c
fsf/trunk/libc/math/w_atanhf.c
fsf/trunk/libc/math/w_atanhl.c
fsf/trunk/libc/math/w_exp2.c
fsf/trunk/libc/math/w_exp2f.c
fsf/trunk/libc/math/w_exp2l.c
fsf/trunk/libc/math/w_j0.c
fsf/trunk/libc/math/w_j0f.c
fsf/trunk/libc/math/w_j0l.c
fsf/trunk/libc/math/w_j1.c
fsf/trunk/libc/math/w_j1f.c
fsf/trunk/libc/math/w_j1l.c
fsf/trunk/libc/math/w_jn.c
fsf/trunk/libc/math/w_jnf.c
fsf/trunk/libc/math/w_log.c
fsf/trunk/libc/math/w_log10.c
fsf/trunk/libc/math/w_log10f.c
fsf/trunk/libc/math/w_log10l.c
fsf/trunk/libc/math/w_log2.c
fsf/trunk/libc/math/w_log2f.c
fsf/trunk/libc/math/w_log2l.c
fsf/trunk/libc/math/w_logf.c
fsf/trunk/libc/math/w_logl.c
fsf/trunk/libc/math/w_sqrt.c
fsf/trunk/libc/math/w_sqrtf.c
fsf/trunk/libc/math/w_sqrtl.c
fsf/trunk/libc/sysdeps/gnu/errlist.c
fsf/trunk/libc/sysdeps/ieee754/dbl-64/e_atanh.c
fsf/trunk/libc/sysdeps/ieee754/dbl-64/w_exp.c
fsf/trunk/libc/sysdeps/ieee754/flt-32/e_atanhf.c
fsf/trunk/libc/sysdeps/ieee754/flt-32/w_expf.c
fsf/trunk/libc/sysdeps/ieee754/ldbl-96/w_expl.c
fsf/trunk/libc/sysdeps/unix/sysv/linux/bits/errno.h
fsf/trunk/libc/sysdeps/unix/sysv/linux/sparc/Versions
fsf/trunk/libc/sysdeps/unix/sysv/linux/sparc/bits/errno.h
Modified: fsf/trunk/libc/ChangeLog
==============================================================================
--- fsf/trunk/libc/ChangeLog (original)
+++ fsf/trunk/libc/ChangeLog Mon Feb 20 00:01:45 2012
@@ -1,3 +1,80 @@
+2012-02-19 Andreas Schwab <schwab@xxxxxxxxxxxxxx>
+
+ * manual/errno.texi (Error Codes): Add EHWPOISON entry.
+ * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
+ defined.
+ * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
+ Likewise.
+ * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
+ entry for 2.16.
+
+2012-02-19 Aurelien Jarno <aurelien@xxxxxxxxxxx>
+
+ * math/w_acos.c: Use non-signaling floating-point comparisons.
+ * math/w_acosf.c: Likewise.
+ * math/w_acosh.c: Likewise.
+ * math/w_acoshf.c: Likewise.
+ * math/w_acoshl.c: Likewise.
+ * math/w_acosl.c: Likewise.
+ * math/w_asin.c: Likewise.
+ * math/w_asinf.c: Likewise.
+ * math/w_asinl.c: Likewise.
+ * math/w_atanh.c: Likewise.
+ * math/w_atanhf.c: Likewise.
+ * math/w_atanhl.c: Likewise.
+ * math/w_exp2.c: Likewise.
+ * math/w_exp2f.c: Likewise.
+ * math/w_exp2l.c: Likewise.
+ * math/w_j0.c: Likewise.
+ * math/w_j0f.c: Likewise.
+ * math/w_j0l.c: Likewise.
+ * math/w_j1.c: Likewise.
+ * math/w_j1f.c: Likewise.
+ * math/w_j1l.c: Likewise.
+ * math/w_jn.c: Likewise.
+ * math/w_jnf.c: Likewise.
+ * math/w_log.c: Likewise.
+ * math/w_log10.c: Likewise.
+ * math/w_log10f.c: Likewise.
+ * math/w_log10l.c: Likewise.
+ * math/w_log2.c: Likewise.
+ * math/w_log2f.c: Likewise.
+ * math/w_log2l.c: Likewise.
+ * math/w_logf.c: Likewise.
+ * math/w_logl.c: Likewise.
+ * math/w_sqrt.c: Likewise.
+ * math/w_sqrtf.c: Likewise.
+ * math/w_sqrtl.c: Likewise.
+ * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
+ * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
+ * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
+ * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
+ * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
+
+2012-02-19 Joseph Myers <joseph@xxxxxxxxxxxxxxxx>
+
+ [BZ #9739]
+ * manual/string.texi (strnlen): Use correct parameter name in
+ equivalent expression.
+
+2012-02-19 Joseph Myers <joseph@xxxxxxxxxxxxxxxx>
+
+ [BZ #11174]
+ * manual/users.texi (seteuid): Consistently use neweuid for
+ argument name.
+
+2012-02-19 Joseph Myers <joseph@xxxxxxxxxxxxxxxx>
+
+ [BZ #13704]
+ * manual/nss.texi (Services in the NSS configuration): Correct
+ list of services in example configuration file.
+
+2012-02-19 Nick Bowler <nbowler@xxxxxxxxxx>
+
+ [BZ #11322]
+ * manual/arith.texi: Remove statements about negative zero
+ behaving identically to zero.
+
2012-02-18 Joseph Myers <joseph@xxxxxxxxxxxxxxxx>
[BZ #5993]
Modified: fsf/trunk/libc/NEWS
==============================================================================
--- fsf/trunk/libc/NEWS (original)
+++ fsf/trunk/libc/NEWS Mon Feb 20 00:01:45 2012
@@ -9,10 +9,10 @@
* The following bugs are resolved with this release:
- 174, 350, 411, 3335, 4026, 4596, 4822, 5077, 5805, 5993, 6884, 6907, 9902,
- 10140, 10210, 11494, 12047, 13058, 13525, 13526, 13527, 13528, 13529,
- 13530, 13531, 13532, 13533, 13547, 13551, 13552, 13553, 13555, 13559,
- 13583, 13618
+ 174, 350, 411, 3335, 4026, 4596, 4822, 5077, 5805, 5993, 6884, 6907, 9739,
+ 9902, 10140, 10210, 11174, 11322, 11494, 12047, 13058, 13525, 13526,
+ 13527, 13528, 13529, 13530, 13531, 13532, 13533, 13547, 13551, 13552,
+ 13553, 13555, 13559, 13583, 13618, 13704
* ISO C11 support:
Modified: fsf/trunk/libc/manual/arith.texi
==============================================================================
--- fsf/trunk/libc/manual/arith.texi (original)
+++ fsf/trunk/libc/manual/arith.texi Mon Feb 20 00:01:45 2012
@@ -657,9 +657,7 @@
@w{IEEE 754} also allows for another unusual value: negative zero. This
value is produced when you divide a positive number by negative
infinity, or when a negative result is smaller than the limits of
-representation. Negative zero behaves identically to zero in all
-calculations, unless you explicitly test the sign bit with
-@code{signbit} or @code{copysign}.
+representation.
@node Status bit operations
@subsection Examining the FPU status word
@@ -926,9 +924,7 @@
is rounded to zero. However, the sign of the result is preserved; if
the calculation was negative, the result is @dfn{negative zero}.
Negative zero can also result from some operations on infinity, such as
-@math{4/-@infinity{}}. Negative zero behaves identically to zero except
-when the @code{copysign} or @code{signbit} functions are used to check
-the sign bit directly.
+@math{4/-@infinity{}}.
At any time one of the above four rounding modes is selected. You can
find out which one with this function:
Modified: fsf/trunk/libc/manual/errno.texi
==============================================================================
--- fsf/trunk/libc/manual/errno.texi (original)
+++ fsf/trunk/libc/manual/errno.texi Mon Feb 20 00:01:45 2012
@@ -1268,6 +1268,12 @@
@comment errno.h
@comment Linux: Operation not possible due to RF-kill
@deftypevr Macro int ERFKILL
+@comment errno ???/???
+@end deftypevr
+
+@comment errno.h
+@comment Linux: Memory page has hardware error
+@deftypevr Macro int EHWPOISON
@comment errno ???/???
@end deftypevr
Modified: fsf/trunk/libc/manual/nss.texi
==============================================================================
--- fsf/trunk/libc/manual/nss.texi (original)
+++ fsf/trunk/libc/manual/nss.texi Mon Feb 20 00:01:45 2012
@@ -138,8 +138,9 @@
@node Services in the NSS configuration, Actions in the NSS configuration, NSS Configuration File, NSS Configuration File
@subsection Services in the NSS configuration File
-The above example file mentions four different services: @code{files},
-@code{db}, @code{nis}, and @code{nisplus}. This does not mean these
+The above example file mentions five different services: @code{files},
+@code{db}, @code{dns}, @code{nis}, and @code{nisplus}. This does not
+mean these
services are available on all sites and it does also not mean these are
all the services which will ever be available.
Modified: fsf/trunk/libc/manual/string.texi
==============================================================================
--- fsf/trunk/libc/manual/string.texi (original)
+++ fsf/trunk/libc/manual/string.texi Mon Feb 20 00:01:45 2012
@@ -303,7 +303,8 @@
The @code{strnlen} function returns the length of the string @var{s} in
bytes if this length is smaller than @var{maxlen} bytes. Otherwise it
returns @var{maxlen}. Therefore this function is equivalent to
-@code{(strlen (@var{s}) < n ? strlen (@var{s}) : @var{maxlen})} but it
+@code{(strlen (@var{s}) < @var{maxlen} ? strlen (@var{s}) : @var{maxlen})}
+but it
is more efficient and works even if the string @var{s} is not
null-terminated.
Modified: fsf/trunk/libc/manual/users.texi
==============================================================================
--- fsf/trunk/libc/manual/users.texi (original)
+++ fsf/trunk/libc/manual/users.texi Mon Feb 20 00:01:45 2012
@@ -291,7 +291,7 @@
@comment unistd.h
@comment POSIX.1
@deftypefun int seteuid (uid_t @var{neweuid})
-This function sets the effective user ID of a process to @var{newuid},
+This function sets the effective user ID of a process to @var{neweuid},
provided that the process is allowed to change its effective user ID. A
privileged process (effective user ID zero) can change its effective
user ID to any legal value. An unprivileged process with a file user ID
@@ -305,7 +305,7 @@
@table @code
@item EINVAL
-The value of the @var{newuid} argument is invalid.
+The value of the @var{neweuid} argument is invalid.
@item EPERM
The process may not change to the specified ID.
Modified: fsf/trunk/libc/math/w_acos.c
==============================================================================
--- fsf/trunk/libc/math/w_acos.c (original)
+++ fsf/trunk/libc/math/w_acos.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -25,7 +25,8 @@
double
__acos (double x)
{
- if (__builtin_expect (fabs (x) > 1.0, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (isgreater (fabs (x), 1.0), 0)
+ && _LIB_VERSION != _IEEE_)
{
/* acos(|x|>1) */
feraiseexcept (FE_INVALID);
Modified: fsf/trunk/libc/math/w_acosf.c
==============================================================================
--- fsf/trunk/libc/math/w_acosf.c (original)
+++ fsf/trunk/libc/math/w_acosf.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -25,7 +25,8 @@
float
__acosf (float x)
{
- if (__builtin_expect (fabsf (x) > 1.0f, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (isgreater (fabsf (x), 1.0f), 0)
+ && _LIB_VERSION != _IEEE_)
{
/* acos(|x|>1) */
feraiseexcept (FE_INVALID);
Modified: fsf/trunk/libc/math/w_acosh.c
==============================================================================
--- fsf/trunk/libc/math/w_acosh.c (original)
+++ fsf/trunk/libc/math/w_acosh.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -24,7 +24,7 @@
double
__acosh (double x)
{
- if (__builtin_expect (x < 1.0, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (isless (x, 1.0), 0) && _LIB_VERSION != _IEEE_)
/* acosh(x<1) */
return __kernel_standard (x, x, 29);
Modified: fsf/trunk/libc/math/w_acoshf.c
==============================================================================
--- fsf/trunk/libc/math/w_acoshf.c (original)
+++ fsf/trunk/libc/math/w_acoshf.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -24,7 +24,7 @@
float
__acoshf (float x)
{
- if (__builtin_expect (x < 1.0f, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (isless (x, 1.0f), 0) && _LIB_VERSION != _IEEE_)
/* acosh(x<1) */
return __kernel_standard_f (x, x, 129);
Modified: fsf/trunk/libc/math/w_acoshl.c
==============================================================================
--- fsf/trunk/libc/math/w_acoshl.c (original)
+++ fsf/trunk/libc/math/w_acoshl.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -24,7 +24,7 @@
long double
__acoshl (long double x)
{
- if (__builtin_expect (x < 1.0L, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (isless (x, 1.0L), 0) && _LIB_VERSION != _IEEE_)
/* acosh(x<1) */
return __kernel_standard (x, x, 229);
Modified: fsf/trunk/libc/math/w_acosl.c
==============================================================================
--- fsf/trunk/libc/math/w_acosl.c (original)
+++ fsf/trunk/libc/math/w_acosl.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -25,7 +25,8 @@
long double
__acosl (long double x)
{
- if (__builtin_expect (fabsl (x) > 1.0L, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (isgreater (fabsl (x), 1.0L), 0)
+ && _LIB_VERSION != _IEEE_)
{
/* acos(|x|>1) */
feraiseexcept (FE_INVALID);
Modified: fsf/trunk/libc/math/w_asin.c
==============================================================================
--- fsf/trunk/libc/math/w_asin.c (original)
+++ fsf/trunk/libc/math/w_asin.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -25,7 +25,8 @@
double
__asin (double x)
{
- if (__builtin_expect (fabs (x) > 1.0, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (isgreater (fabs (x), 1.0), 0)
+ && _LIB_VERSION != _IEEE_)
{
/* asin(|x|>1) */
feraiseexcept (FE_INVALID);
Modified: fsf/trunk/libc/math/w_asinf.c
==============================================================================
--- fsf/trunk/libc/math/w_asinf.c (original)
+++ fsf/trunk/libc/math/w_asinf.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -25,7 +25,8 @@
float
__asinf (float x)
{
- if (__builtin_expect (fabsf (x) > 1.0f, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (isgreater (fabsf (x), 1.0f), 0)
+ && _LIB_VERSION != _IEEE_)
{
/* asin(|x|>1) */
feraiseexcept (FE_INVALID);
Modified: fsf/trunk/libc/math/w_asinl.c
==============================================================================
--- fsf/trunk/libc/math/w_asinl.c (original)
+++ fsf/trunk/libc/math/w_asinl.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -25,7 +25,8 @@
long double
__asinl (long double x)
{
- if (__builtin_expect (fabsl (x) > 1.0L, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (isgreater (fabsl (x), 1.0L), 0)
+ && _LIB_VERSION != _IEEE_)
{
/* asin(|x|>1) */
feraiseexcept (FE_INVALID);
Modified: fsf/trunk/libc/math/w_atanh.c
==============================================================================
--- fsf/trunk/libc/math/w_atanh.c (original)
+++ fsf/trunk/libc/math/w_atanh.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -24,7 +24,8 @@
double
__atanh (double x)
{
- if (__builtin_expect (fabs (x) >= 1.0, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (isgreaterequal (fabs (x), 1.0), 0)
+ && _LIB_VERSION != _IEEE_)
return __kernel_standard (x, x,
fabs (x) > 1.0
? 30 /* atanh(|x|>1) */
Modified: fsf/trunk/libc/math/w_atanhf.c
==============================================================================
--- fsf/trunk/libc/math/w_atanhf.c (original)
+++ fsf/trunk/libc/math/w_atanhf.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -24,7 +24,8 @@
float
__atanhf (float x)
{
- if (__builtin_expect (fabsf (x) >= 1.0f, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (isgreaterequal (fabsf (x), 1.0f), 0)
+ && _LIB_VERSION != _IEEE_)
return __kernel_standard_f (x, x,
fabsf (x) > 1.0f
? 130 /* atanh(|x|>1) */
Modified: fsf/trunk/libc/math/w_atanhl.c
==============================================================================
--- fsf/trunk/libc/math/w_atanhl.c (original)
+++ fsf/trunk/libc/math/w_atanhl.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -24,7 +24,8 @@
long double
__atanhl (long double x)
{
- if (__builtin_expect (fabsl (x) >= 1.0L, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (isgreaterequal (fabsl (x), 1.0L), 0)
+ && _LIB_VERSION != _IEEE_)
return __kernel_standard (x, x,
fabsl (x) > 1.0L
? 230 /* atanh(|x|>1) */
Modified: fsf/trunk/libc/math/w_exp2.c
==============================================================================
--- fsf/trunk/libc/math/w_exp2.c (original)
+++ fsf/trunk/libc/math/w_exp2.c Mon Feb 20 00:01:45 2012
@@ -12,7 +12,8 @@
double
__exp2 (double x)
{
- if (__builtin_expect (x <= u_threshold || x > o_threshold, 0)
+ if (__builtin_expect (islessequal (x, u_threshold)
+ || isgreater (x, o_threshold), 0)
&& _LIB_VERSION != _IEEE_ && __finite (x))
/* exp2 overflow: 44, exp2 underflow: 45 */
return __kernel_standard (x, x, 44 + (x <= o_threshold));
Modified: fsf/trunk/libc/math/w_exp2f.c
==============================================================================
--- fsf/trunk/libc/math/w_exp2f.c (original)
+++ fsf/trunk/libc/math/w_exp2f.c Mon Feb 20 00:01:45 2012
@@ -12,7 +12,8 @@
float
__exp2f (float x)
{
- if (__builtin_expect (x <= u_threshold || x > o_threshold, 0)
+ if (__builtin_expect (islessequal (x, u_threshold)
+ || isgreater (x, o_threshold), 0)
&& _LIB_VERSION != _IEEE_ && __finitef (x))
/* exp2 overflow: 144, exp2 underflow: 145 */
return __kernel_standard_f (x, x, 144 + (x <= o_threshold));
Modified: fsf/trunk/libc/math/w_exp2l.c
==============================================================================
--- fsf/trunk/libc/math/w_exp2l.c (original)
+++ fsf/trunk/libc/math/w_exp2l.c Mon Feb 20 00:01:45 2012
@@ -13,7 +13,8 @@
long double
__exp2l (long double x)
{
- if (__builtin_expect (x <= u_threshold || x > o_threshold, 0)
+ if (__builtin_expect (islessequal (x, u_threshold)
+ || isgreater (x, o_threshold), 0)
&& _LIB_VERSION != _IEEE_ && __finitel (x))
/* exp2 overflow: 244, exp2 underflow: 245 */
return __kernel_standard (x, x, 244 + (x <= o_threshold));
Modified: fsf/trunk/libc/math/w_j0.c
==============================================================================
--- fsf/trunk/libc/math/w_j0.c (original)
+++ fsf/trunk/libc/math/w_j0.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -25,7 +25,8 @@
double
j0 (double x)
{
- if (__builtin_expect (fabs (x) > X_TLOSS, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (isgreater (fabs (x), X_TLOSS), 0)
+ && _LIB_VERSION != _IEEE_)
/* j0(|x|>X_TLOSS) */
return __kernel_standard (x, x, 34);
@@ -40,7 +41,8 @@
double
y0 (double x)
{
- if (__builtin_expect (x <= 0.0 || x > X_TLOSS, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (islessequal (x, 0.0) || isgreater (x, X_TLOSS), 0)
+ && _LIB_VERSION != _IEEE_)
{
if (x < 0.0)
{
Modified: fsf/trunk/libc/math/w_j0f.c
==============================================================================
--- fsf/trunk/libc/math/w_j0f.c (original)
+++ fsf/trunk/libc/math/w_j0f.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -25,7 +25,7 @@
float
j0f (float x)
{
- if (__builtin_expect (fabsf (x) > (float) X_TLOSS, 0)
+ if (__builtin_expect (isgreater (fabsf (x), (float) X_TLOSS), 0)
&& _LIB_VERSION != _IEEE_)
/* j0(|x|>X_TLOSS) */
return __kernel_standard_f (x, x, 134);
@@ -38,7 +38,8 @@
float
y0f (float x)
{
- if (__builtin_expect (x <= 0.0f || x > (float) X_TLOSS, 0)
+ if (__builtin_expect (islessequal (x, 0.0f)
+ || isgreater (x, (float) X_TLOSS), 0)
&& _LIB_VERSION != _IEEE_)
{
if (x < 0.0f)
Modified: fsf/trunk/libc/math/w_j0l.c
==============================================================================
--- fsf/trunk/libc/math/w_j0l.c (original)
+++ fsf/trunk/libc/math/w_j0l.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -25,7 +25,8 @@
long double
__j0l (long double x)
{
- if (__builtin_expect (fabsl (x) > X_TLOSS, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (isgreater (fabsl (x), X_TLOSS), 0)
+ && _LIB_VERSION != _IEEE_)
/* j0(|x|>X_TLOSS) */
return __kernel_standard (x, x, 234);
@@ -38,7 +39,8 @@
long double
__y0l (long double x)
{
- if (__builtin_expect (x <= 0.0L || x > X_TLOSS, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (islessequal (x, 0.0L) || isgreater (x, X_TLOSS), 0)
+ && _LIB_VERSION != _IEEE_)
{
if (x < 0.0L)
{
Modified: fsf/trunk/libc/math/w_j1.c
==============================================================================
--- fsf/trunk/libc/math/w_j1.c (original)
+++ fsf/trunk/libc/math/w_j1.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -25,7 +25,8 @@
double
j1 (double x)
{
- if (__builtin_expect (fabs (x) > X_TLOSS, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (isgreater (fabs (x), X_TLOSS), 0)
+ && _LIB_VERSION != _IEEE_)
/* j1(|x|>X_TLOSS) */
return __kernel_standard (x, x, 36);
@@ -40,7 +41,8 @@
double
y1 (double x)
{
- if (__builtin_expect (x <= 0.0 || x > X_TLOSS, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (islessequal (x, 0.0) || isgreater (x, X_TLOSS), 0)
+ && _LIB_VERSION != _IEEE_)
{
if (x < 0.0)
{
Modified: fsf/trunk/libc/math/w_j1f.c
==============================================================================
--- fsf/trunk/libc/math/w_j1f.c (original)
+++ fsf/trunk/libc/math/w_j1f.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -25,7 +25,8 @@
float
j1f (float x)
{
- if (__builtin_expect (fabsf (x) > X_TLOSS, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (isgreater (fabsf (x), X_TLOSS), 0)
+ && _LIB_VERSION != _IEEE_)
/* j1(|x|>X_TLOSS) */
return __kernel_standard_f (x, x, 136);
@@ -37,7 +38,8 @@
float
y1f (float x)
{
- if (__builtin_expect (x <= 0.0f || x > (float) X_TLOSS, 0)
+ if (__builtin_expect (islessequal (x, 0.0f)
+ || isgreater (x, (float) X_TLOSS), 0)
&& _LIB_VERSION != _IEEE_)
{
if (x < 0.0f)
Modified: fsf/trunk/libc/math/w_j1l.c
==============================================================================
--- fsf/trunk/libc/math/w_j1l.c (original)
+++ fsf/trunk/libc/math/w_j1l.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -25,7 +25,8 @@
long double
__j1l (long double x)
{
- if (__builtin_expect (fabsl (x) > X_TLOSS, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (isgreater (fabsl (x), X_TLOSS), 0)
+ && _LIB_VERSION != _IEEE_)
/* j1(|x|>X_TLOSS) */
return __kernel_standard (x, x, 236);
@@ -38,7 +39,8 @@
long double
__y1l (long double x)
{
- if (__builtin_expect (x <= 0.0L || x > X_TLOSS, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (islessequal (x, 0.0L) || isgreater (x, X_TLOSS), 0)
+ && _LIB_VERSION != _IEEE_)
{
if (x < 0.0L)
{
Modified: fsf/trunk/libc/math/w_jn.c
==============================================================================
--- fsf/trunk/libc/math/w_jn.c (original)
+++ fsf/trunk/libc/math/w_jn.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -25,7 +25,8 @@
double
jn (int n, double x)
{
- if (__builtin_expect (fabs (x) > X_TLOSS, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (isgreater (fabs (x), X_TLOSS), 0)
+ && _LIB_VERSION != _IEEE_)
/* jn(n,|x|>X_TLOSS) */
return __kernel_standard (n, x, 38);
@@ -40,7 +41,8 @@
double
yn (int n, double x)
{
- if (__builtin_expect (x <= 0.0 || x > X_TLOSS, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (islessequal (x, 0.0) || isgreater (x, X_TLOSS), 0)
+ && _LIB_VERSION != _IEEE_)
{
if (x < 0.0)
{
Modified: fsf/trunk/libc/math/w_jnf.c
==============================================================================
--- fsf/trunk/libc/math/w_jnf.c (original)
+++ fsf/trunk/libc/math/w_jnf.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -25,7 +25,7 @@
float
jnf (int n, float x)
{
- if (__builtin_expect (fabsf (x) > (float) X_TLOSS, 0)
+ if (__builtin_expect (isgreater (fabsf (x), (float) X_TLOSS), 0)
&& _LIB_VERSION != _IEEE_)
/* jn(n,|x|>X_TLOSS) */
return __kernel_standard_f (n, x, 138);
@@ -38,7 +38,8 @@
float
ynf (int n, float x)
{
- if (__builtin_expect (x <= 0.0f || x > (float) X_TLOSS, 0)
+ if (__builtin_expect (islessequal (x, 0.0f)
+ || isgreater (x, (float) X_TLOSS), 0)
&& _LIB_VERSION != _IEEE_)
{
if (x < 0.0f)
Modified: fsf/trunk/libc/math/w_log.c
==============================================================================
--- fsf/trunk/libc/math/w_log.c (original)
+++ fsf/trunk/libc/math/w_log.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -25,7 +25,7 @@
double
__log (double x)
{
- if (__builtin_expect (x <= 0.0, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (islessequal (x, 0.0), 0) && _LIB_VERSION != _IEEE_)
{
if (x == 0.0)
{
Modified: fsf/trunk/libc/math/w_log10.c
==============================================================================
--- fsf/trunk/libc/math/w_log10.c (original)
+++ fsf/trunk/libc/math/w_log10.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -25,7 +25,7 @@
double
__log10 (double x)
{
- if (__builtin_expect (x <= 0.0, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (islessequal (x, 0.0), 0) && _LIB_VERSION != _IEEE_)
{
if (x == 0.0)
{
Modified: fsf/trunk/libc/math/w_log10f.c
==============================================================================
--- fsf/trunk/libc/math/w_log10f.c (original)
+++ fsf/trunk/libc/math/w_log10f.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -25,7 +25,7 @@
float
__log10f (float x)
{
- if (__builtin_expect (x <= 0.0f, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (islessequal (x, 0.0f), 0) && _LIB_VERSION != _IEEE_)
{
if (x == 0.0f)
{
Modified: fsf/trunk/libc/math/w_log10l.c
==============================================================================
--- fsf/trunk/libc/math/w_log10l.c (original)
+++ fsf/trunk/libc/math/w_log10l.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -25,7 +25,7 @@
long double
__log10l (long double x)
{
- if (__builtin_expect (x <= 0.0L, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (islessequal (x, 0.0L), 0) && _LIB_VERSION != _IEEE_)
{
if (x == 0.0L)
{
Modified: fsf/trunk/libc/math/w_log2.c
==============================================================================
--- fsf/trunk/libc/math/w_log2.c (original)
+++ fsf/trunk/libc/math/w_log2.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -25,7 +25,7 @@
double
__log2 (double x)
{
- if (__builtin_expect (x <= 0.0, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (islessequal (x, 0.0), 0) && _LIB_VERSION != _IEEE_)
{
if (x == 0.0)
{
Modified: fsf/trunk/libc/math/w_log2f.c
==============================================================================
--- fsf/trunk/libc/math/w_log2f.c (original)
+++ fsf/trunk/libc/math/w_log2f.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -25,7 +25,7 @@
float
__log2f (float x)
{
- if (__builtin_expect (x <= 0.0f, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (islessequal (x, 0.0f), 0) && _LIB_VERSION != _IEEE_)
{
if (x == 0.0)
{
Modified: fsf/trunk/libc/math/w_log2l.c
==============================================================================
--- fsf/trunk/libc/math/w_log2l.c (original)
+++ fsf/trunk/libc/math/w_log2l.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -25,7 +25,7 @@
long double
__log2l (long double x)
{
- if (__builtin_expect (x <= 0.0L, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (islessequal (x, 0.0L), 0) && _LIB_VERSION != _IEEE_)
{
if (x == 0.0L)
{
Modified: fsf/trunk/libc/math/w_logf.c
==============================================================================
--- fsf/trunk/libc/math/w_logf.c (original)
+++ fsf/trunk/libc/math/w_logf.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -25,7 +25,7 @@
float
__logf (float x)
{
- if (__builtin_expect (x <= 0.0f, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (islessequal (x, 0.0f), 0) && _LIB_VERSION != _IEEE_)
{
if (x == 0.0f)
{
Modified: fsf/trunk/libc/math/w_logl.c
==============================================================================
--- fsf/trunk/libc/math/w_logl.c (original)
+++ fsf/trunk/libc/math/w_logl.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -25,7 +25,7 @@
long double
__logl (long double x)
{
- if (__builtin_expect (x <= 0.0L, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (islessequal (x, 0.0L), 0) && _LIB_VERSION != _IEEE_)
{
if (x == 0.0L)
{
Modified: fsf/trunk/libc/math/w_sqrt.c
==============================================================================
--- fsf/trunk/libc/math/w_sqrt.c (original)
+++ fsf/trunk/libc/math/w_sqrt.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -24,7 +24,7 @@
double
__sqrt (double x)
{
- if (__builtin_expect (x < 0.0, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (isless (x, 0.0), 0) && _LIB_VERSION != _IEEE_)
return __kernel_standard (x, x, 26); /* sqrt(negative) */
return __ieee754_sqrt (x);
Modified: fsf/trunk/libc/math/w_sqrtf.c
==============================================================================
--- fsf/trunk/libc/math/w_sqrtf.c (original)
+++ fsf/trunk/libc/math/w_sqrtf.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -24,7 +24,7 @@
float
__sqrtf (float x)
{
- if (__builtin_expect (x < 0.0f, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (isless (x, 0.0f), 0) && _LIB_VERSION != _IEEE_)
return __kernel_standard_f (x, x, 126); /* sqrt(negative) */
return __ieee754_sqrtf (x);
Modified: fsf/trunk/libc/math/w_sqrtl.c
==============================================================================
--- fsf/trunk/libc/math/w_sqrtl.c (original)
+++ fsf/trunk/libc/math/w_sqrtl.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -24,7 +24,7 @@
long double
__sqrtl (long double x)
{
- if (__builtin_expect (x < 0.0L, 0) && _LIB_VERSION != _IEEE_)
+ if (__builtin_expect (isless (x, 0.0L), 0) && _LIB_VERSION != _IEEE_)
return __kernel_standard (x, x, 226); /* sqrt(negative) */
return __ieee754_sqrtl (x);
Modified: fsf/trunk/libc/sysdeps/gnu/errlist.c
==============================================================================
--- fsf/trunk/libc/sysdeps/gnu/errlist.c (original)
+++ fsf/trunk/libc/sysdeps/gnu/errlist.c Mon Feb 20 00:01:45 2012
@@ -1464,6 +1464,14 @@
# define ERR_MAX ERFKILL
# endif
#endif
+#ifdef EHWPOISON
+/* */
+ [ERR_REMAP (EHWPOISON)] = N_("Memory page has hardware error"),
+# if EHWPOISON > ERR_MAX
+# undef ERR_MAX
+# define ERR_MAX EHWPOISON
+# endif
+#endif
};
#define NERR \
Modified: fsf/trunk/libc/sysdeps/ieee754/dbl-64/e_atanh.c
==============================================================================
--- fsf/trunk/libc/sysdeps/ieee754/dbl-64/e_atanh.c (original)
+++ fsf/trunk/libc/sysdeps/ieee754/dbl-64/e_atanh.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -46,7 +46,7 @@
{
double xa = fabs (x);
double t;
- if (xa < 0.5)
+ if (isless (xa, 0.5))
{
if (__builtin_expect (xa < 0x1.0p-28, 0))
{
@@ -57,11 +57,11 @@
t = xa + xa;
t = 0.5 * __log1p (t + t * xa / (1.0 - xa));
}
- else if (__builtin_expect (xa < 1.0, 1))
+ else if (__builtin_expect (isless (xa, 1.0), 1))
t = 0.5 * __log1p ((xa + xa) / (1.0 - xa));
else
{
- if (xa > 1.0)
+ if (isgreater (xa, 1.0))
return (x - x) / (x - x);
return x / 0.0;
Modified: fsf/trunk/libc/sysdeps/ieee754/dbl-64/w_exp.c
==============================================================================
--- fsf/trunk/libc/sysdeps/ieee754/dbl-64/w_exp.c (original)
+++ fsf/trunk/libc/sysdeps/ieee754/dbl-64/w_exp.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -28,12 +28,12 @@
double
__exp (double x)
{
- if (__builtin_expect (x > o_threshold, 0))
+ if (__builtin_expect (isgreater (x, o_threshold), 0))
{
if (_LIB_VERSION != _IEEE_)
return __kernel_standard_f (x, x, 6);
}
- else if (__builtin_expect (x < u_threshold, 0))
+ else if (__builtin_expect (isless (x, u_threshold), 0))
{
if (_LIB_VERSION != _IEEE_)
return __kernel_standard_f (x, x, 7);
Modified: fsf/trunk/libc/sysdeps/ieee754/flt-32/e_atanhf.c
==============================================================================
--- fsf/trunk/libc/sysdeps/ieee754/flt-32/e_atanhf.c (original)
+++ fsf/trunk/libc/sysdeps/ieee754/flt-32/e_atanhf.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -46,7 +46,7 @@
{
float xa = fabsf (x);
float t;
- if (xa < 0.5f)
+ if (isless (xa, 0.5f))
{
if (__builtin_expect (xa < 0x1.0p-28f, 0))
{
@@ -57,11 +57,11 @@
t = xa + xa;
t = 0.5f * __log1pf (t + t * xa / (1.0f - xa));
}
- else if (__builtin_expect (xa < 1.0f, 1))
+ else if (__builtin_expect (isless (xa, 1.0f), 1))
t = 0.5f * __log1pf ((xa + xa) / (1.0f - xa));
else
{
- if (xa > 1.0f)
+ if (isgreater (xa, 1.0f))
return (x - x) / (x - x);
return x / 0.0f;
Modified: fsf/trunk/libc/sysdeps/ieee754/flt-32/w_expf.c
==============================================================================
--- fsf/trunk/libc/sysdeps/ieee754/flt-32/w_expf.c (original)
+++ fsf/trunk/libc/sysdeps/ieee754/flt-32/w_expf.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -28,12 +28,12 @@
float
__expf (float x)
{
- if (__builtin_expect (x > o_threshold, 0))
+ if (__builtin_expect (isgreater (x, o_threshold), 0))
{
if (_LIB_VERSION != _IEEE_)
return __kernel_standard_f (x, x, 106);
}
- else if (__builtin_expect (x < u_threshold, 0))
+ else if (__builtin_expect (isless (x, u_threshold), 0))
{
if (_LIB_VERSION != _IEEE_)
return __kernel_standard_f (x, x, 107);
Modified: fsf/trunk/libc/sysdeps/ieee754/ldbl-96/w_expl.c
==============================================================================
--- fsf/trunk/libc/sysdeps/ieee754/ldbl-96/w_expl.c (original)
+++ fsf/trunk/libc/sysdeps/ieee754/ldbl-96/w_expl.c Mon Feb 20 00:01:45 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@xxxxxxxxx>, 2011.
@@ -30,12 +30,12 @@
long double
__expl (long double x)
{
- if (__builtin_expect (x > o_threshold, 0))
+ if (__builtin_expect (isgreater (x, o_threshold), 0))
{
if (_LIB_VERSION != _IEEE_)
return __kernel_standard (x, x, 206);
}
- else if (__builtin_expect (x < u_threshold, 0))
+ else if (__builtin_expect (isless (x, u_threshold), 0))
{
if (_LIB_VERSION != _IEEE_)
return __kernel_standard (x, x, 207);
Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/bits/errno.h
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/bits/errno.h (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/bits/errno.h Mon Feb 20 00:01:45 2012
@@ -1,5 +1,5 @@
/* Error constants. Linux specific version.
- Copyright (C) 1996-1999, 2005, 2009 Free Software Foundation, Inc.
+ Copyright (C) 1996-1999, 2005, 2009, 2012 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
@@ -41,6 +41,10 @@
# define ERFKILL 132
# endif
+# ifndef EHWPOISON
+# define EHWPOISON 133
+# endif
+
# ifndef __ASSEMBLER__
/* Function to get address of global `errno' variable. */
extern int *__errno_location (void) __THROW __attribute__ ((__const__));
Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/sparc/Versions
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/sparc/Versions (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/sparc/Versions Mon Feb 20 00:01:45 2012
@@ -23,6 +23,10 @@
#errlist-compat 135
_sys_errlist; sys_errlist; _sys_nerr; sys_nerr;
}
+ GLIBC_2.16 {
+ #errlist-compat 136
+ _sys_errlist; sys_errlist; _sys_nerr; sys_nerr;
+ }
}
librt {
GLIBC_2.3 {
Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/sparc/bits/errno.h
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/sparc/bits/errno.h (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/sparc/bits/errno.h Mon Feb 20 00:01:45 2012
@@ -1,5 +1,5 @@
/* Error constants. Linux/Sparc specific version.
- Copyright (C) 1996-1999,2002,2005,2009 Free Software Foundation, Inc.
+ Copyright (C) 1996-1999,2002,2005,2009,2012 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
@@ -40,6 +40,10 @@
# define ERFKILL 134
# endif
+# ifndef EHWPOISON
+# define EHWPOISON 135
+# endif
+
# ifndef __ASSEMBLER__
/* Function to get address of global `errno' variable. */
extern int *__errno_location (void) __THROW __attribute__ ((__const__));
_______________________________________________
Commits mailing list
Commits@xxxxxxxxxx
http://eglibc.org/cgi-bin/mailman/listinfo/commits