diff options
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/ieee754/dbl-64/s_remquo.c | 4 | ||||
-rw-r--r-- | sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c | 4 | ||||
-rw-r--r-- | sysdeps/ieee754/flt-32/s_remquof.c | 4 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-128/s_remquol.c | 4 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-128ibm/s_remquol.c | 4 | ||||
-rw-r--r-- | sysdeps/ieee754/ldbl-96/s_remquol.c | 4 |
6 files changed, 12 insertions, 12 deletions
diff --git a/sysdeps/ieee754/dbl-64/s_remquo.c b/sysdeps/ieee754/dbl-64/s_remquo.c index 2724902908..e07efa89f8 100644 --- a/sysdeps/ieee754/dbl-64/s_remquo.c +++ b/sysdeps/ieee754/dbl-64/s_remquo.c @@ -60,12 +60,12 @@ __remquo (double x, double y, int *quo) y = fabs (y); cquo = 0; - if (x >= 4 * y) + if (hy <= 0x7fcfffff && x >= 4 * y) { x -= 4 * y; cquo += 4; } - if (x >= 2 * y) + if (hy <= 0x7fdfffff && x >= 2 * y) { x -= 2 * y; cquo += 2; diff --git a/sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c b/sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c index 5b7142576a..ab561780c8 100644 --- a/sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c +++ b/sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c @@ -59,12 +59,12 @@ __remquo (double x, double y, int *quo) INSERT_WORDS64 (y, hy); cquo = 0; - if (x >= 4 * y) + if (hy <= UINT64_C(0x7fcfffffffffffff) && x >= 4 * y) { x -= 4 * y; cquo += 4; } - if (x >= 2 * y) + if (hy <= UINT64_C(0x7fdfffffffffffff) && x >= 2 * y) { x -= 2 * y; cquo += 2; diff --git a/sysdeps/ieee754/flt-32/s_remquof.c b/sysdeps/ieee754/flt-32/s_remquof.c index a9cdf8fb98..04944fdcd3 100644 --- a/sysdeps/ieee754/flt-32/s_remquof.c +++ b/sysdeps/ieee754/flt-32/s_remquof.c @@ -59,12 +59,12 @@ __remquof (float x, float y, int *quo) y = fabsf (y); cquo = 0; - if (x >= 4 * y) + if (hy <= 0x7e7fffff && x >= 4 * y) { x -= 4 * y; cquo += 4; } - if (x >= 2 * y) + if (hy <= 0x7effffff && x >= 2 * y) { x -= 2 * y; cquo += 2; diff --git a/sysdeps/ieee754/ldbl-128/s_remquol.c b/sysdeps/ieee754/ldbl-128/s_remquol.c index 8543265f1a..da175a14f6 100644 --- a/sysdeps/ieee754/ldbl-128/s_remquol.c +++ b/sysdeps/ieee754/ldbl-128/s_remquol.c @@ -61,12 +61,12 @@ __remquol (long double x, long double y, int *quo) y = fabsl (y); cquo = 0; - if (x >= 4 * y) + if (hy <= 0x7ffcffffffffffffLL && x >= 4 * y) { x -= 4 * y; cquo += 4; } - if (x >= 2 * y) + if (hy <= 0x7ffdffffffffffffLL && x >= 2 * y) { x -= 2 * y; cquo += 2; diff --git a/sysdeps/ieee754/ldbl-128ibm/s_remquol.c b/sysdeps/ieee754/ldbl-128ibm/s_remquol.c index e36af52d77..ac228796b0 100644 --- a/sysdeps/ieee754/ldbl-128ibm/s_remquol.c +++ b/sysdeps/ieee754/ldbl-128ibm/s_remquol.c @@ -66,12 +66,12 @@ __remquol (long double x, long double y, int *quo) y = fabsl (y); cquo = 0; - if (x >= 4 * y) + if (hy <= 0x7fcfffffffffffffLL && x >= 4 * y) { x -= 4 * y; cquo += 4; } - if (x >= 2 * y) + if (hy <= 0x7fdfffffffffffffLL && x >= 2 * y) { x -= 2 * y; cquo += 2; diff --git a/sysdeps/ieee754/ldbl-96/s_remquol.c b/sysdeps/ieee754/ldbl-96/s_remquol.c index 6b3499d257..1462b54456 100644 --- a/sysdeps/ieee754/ldbl-96/s_remquol.c +++ b/sysdeps/ieee754/ldbl-96/s_remquol.c @@ -60,12 +60,12 @@ __remquol (long double x, long double p, int *quo) p = fabsl (p); cquo = 0; - if (x >= 4 * p) + if (ep <= 0x7ffc && x >= 4 * p) { x -= 4 * p; cquo += 4; } - if (x >= 2 * p) + if (ep <= 0x7ffd && x >= 2 * p) { x -= 2 * p; cquo += 2; |