diff options
author | Joseph Myers <joseph@codesourcery.com> | 2015-05-19 23:44:28 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2015-05-19 23:44:28 +0000 |
commit | 3ce2232efb008e129908b9f35c4266991d9361de (patch) | |
tree | a479c93a0470a331434f1c96b0f365151e7bbd95 /ChangeLog | |
parent | 526af54142db14c1edcd2d80dc1b56d33ff4e8ce (diff) | |
download | glibc-3ce2232efb008e129908b9f35c4266991d9361de.zip glibc-3ce2232efb008e129908b9f35c4266991d9361de.tar.gz glibc-3ce2232efb008e129908b9f35c4266991d9361de.tar.bz2 |
Fix ldbl-96 remquol (finite, Inf) (bug 18244).
ldbl-96 remquol wrongly handles the case where the first argument is
finite and the second infinite, because the check for the second
argument being a NaN fails to disregard the explicit high mantissa bit
and so wrongly interprets an infinity as being a NaN. This patch
fixes this by masking off that bit, and improves test coverage for
both remainder and remquo (various cases were missing tests, or, as in
the case of the bug, were tested only for one of the two functions).
Tested for x86_64 and x86.
[BZ #18244]
* sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
high mantissa bit when testing whether P is a NaN.
* math/libm-test.inc (remainder_test_data): Add more tests.
(remquo_test_data): Likewise.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1,5 +1,11 @@ 2015-05-19 Joseph Myers <joseph@codesourcery.com> + [BZ #18244] + * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit + high mantissa bit when testing whether P is a NaN. + * math/libm-test.inc (remainder_test_data): Add more tests. + (remquo_test_data): Likewise. + [BZ #18049] * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents below -32, return the argument, with underflow if subnormal. |