Correct IBM long double frexpl.
authorAlan Modra <amodra@gmail.com>
Wed, 16 Apr 2014 10:03:32 +0000 (19:33 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 16 Apr 2014 10:03:32 +0000 (19:33 +0930)
commitaa5f0ff11ad2cc85277c64cf65c723a9664e1149
tree841c809e5a067dfc91478956a8549f05fccee250
parentbb9c256fb01b09bc13a58ada3ea045ac9efd4834
Correct IBM long double frexpl.

Besides fixing the bugzilla, this also fixes corner-cases where the high
and low double differ greatly in magnitude, and handles a denormal
input without resorting to a fp rescale.

[BZ #16740]
[BZ #16619]
* sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
* math/libm-test.inc (frexp_test_data): Add tests.
ChangeLog
math/libm-test.inc
sysdeps/ieee754/ldbl-128ibm/s_frexpl.c