]> git.ipfire.org Git - thirdparty/glibc.git/commit
Correct IBM long double nextafterl.
authorAlan Modra <amodra@gmail.com>
Wed, 2 Apr 2014 03:16:19 +0000 (13:46 +1030)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Wed, 2 Apr 2014 11:26:32 +0000 (06:26 -0500)
commite266b71770050a4d0cb276f4afea1c5b05215184
tree4bd7c50bc9591f9c8b3bf43368f2a96dc2fcb82f
parentb23fc92895aff0ce3d3134a91adaa253bffd187a
Correct IBM long double nextafterl.

Fix for values near a power of two, and some tidies.

[BZ #16739]
* sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
output when value is near a power of two.  Use int64_t for lx and
remove casts.  Use decimal rather than hex exponent constants.
Don't use long double multiplication when double will suffice.
* math/libm-test.inc (nextafter_test_data): Add tests.
* NEWS: Add 16739 and 16786 to bug list.

Backport of b0abbc21034f0e5edc49023d8fda0616173faf17.
ChangeLog
NEWS
math/libm-test.inc
sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c