]> git.ipfire.org Git - thirdparty/glibc.git/commit
Correct IBM long double frexpl.
authorAlan Modra <amodra@gmail.com>
Wed, 16 Apr 2014 10:03:32 +0000 (19:33 +0930)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Fri, 25 Apr 2014 15:06:10 +0000 (10:06 -0500)
commita8050d789589b73e7908b806d5c929facf76cc6b
tree21c1190922e1ef7a6402dfbd38d4a03a43eeed3a
parent154d4d95f48061d5ab890c85b6015221c1accc6e
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.

Backport of aa5f0ff11ad2cc85277c64cf65c723a9664e1149 and
9860b0450275ad2b69cb9360fd01d5c122a65fc5.
ChangeLog
NEWS
math/libm-test.inc
sysdeps/ieee754/ldbl-128ibm/s_frexpl.c