aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@redhat.com>2011-10-26 11:37:08 +0200
committerAndreas Schwab <schwab@redhat.com>2011-10-26 11:44:08 +0200
commit804791474dc1f0904f6d91ef66dbbbc322991e0b (patch)
tree45bbe2612165bf4b252de5e9efbdd8c214f62dfe /sysdeps
parentf6ce9294b0a6c5a847109cc41b7ad0c838b9ccfe (diff)
downloadglibc-804791474dc1f0904f6d91ef66dbbbc322991e0b.tar
glibc-804791474dc1f0904f6d91ef66dbbbc322991e0b.tar.gz
glibc-804791474dc1f0904f6d91ef66dbbbc322991e0b.tar.bz2
glibc-804791474dc1f0904f6d91ef66dbbbc322991e0b.zip
Fix uses of math_force_eval
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/ieee754/dbl-64/s_round.c6
-rw-r--r--sysdeps/ieee754/flt-32/e_j0f.c2
-rw-r--r--sysdeps/ieee754/flt-32/s_roundf.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/sysdeps/ieee754/dbl-64/s_round.c b/sysdeps/ieee754/dbl-64/s_round.c
index f8a38163fc..74461967fc 100644
--- a/sysdeps/ieee754/dbl-64/s_round.c
+++ b/sysdeps/ieee754/dbl-64/s_round.c
@@ -38,7 +38,7 @@ __round (double x)
{
if (j0 < 0)
{
- math_force_eval (huge + x > 0.0);
+ math_force_eval (huge + x);
i0 &= 0x80000000;
if (j0 == -1)
@@ -51,7 +51,7 @@ __round (double x)
if (((i0 & i) | i1) == 0)
/* X is integral. */
return x;
- math_force_eval (huge + x > 0.0);
+ math_force_eval (huge + x);
/* Raise inexact if x != 0. */
i0 += 0x00080000 >> j0;
@@ -74,7 +74,7 @@ __round (double x)
/* X is integral. */
return x;
- math_force_eval (huge + x > 0.0);
+ math_force_eval (huge + x);
/* Raise inexact if x != 0. */
u_int32_t j = i1 + (1 << (51 - j0));
diff --git a/sysdeps/ieee754/flt-32/e_j0f.c b/sysdeps/ieee754/flt-32/e_j0f.c
index 181c2e46d4..0cc52c94c4 100644
--- a/sysdeps/ieee754/flt-32/e_j0f.c
+++ b/sysdeps/ieee754/flt-32/e_j0f.c
@@ -66,7 +66,7 @@ __ieee754_j0f(float x)
return z;
}
if(ix<0x39000000) { /* |x| < 2**-13 */
- math_force_eval(huge+x>one); /* raise inexact if x != 0 */
+ math_force_eval(huge+x); /* raise inexact if x != 0 */
if(ix<0x32000000) return one; /* |x|<2**-27 */
else return one - (float)0.25*x*x;
}
diff --git a/sysdeps/ieee754/flt-32/s_roundf.c b/sysdeps/ieee754/flt-32/s_roundf.c
index 09b38cdc2a..f4f9dd61d3 100644
--- a/sysdeps/ieee754/flt-32/s_roundf.c
+++ b/sysdeps/ieee754/flt-32/s_roundf.c
@@ -37,7 +37,7 @@ __roundf (float x)
{
if (j0 < 0)
{
- math_force_eval (huge + x > 0.0F);
+ math_force_eval (huge + x);
i0 &= 0x80000000;
if (j0 == -1)
@@ -49,7 +49,7 @@ __roundf (float x)
if ((i0 & i) == 0)
/* X is integral. */
return x;
- math_force_eval (huge + x > 0.0F);
+ math_force_eval (huge + x);
/* Raise inexact if x != 0. */
i0 += 0x00400000 >> j0;