Fix ldbl-128ibm expm1l (sNaN) (bug 20233).
commitf8fc4b44942238dec3228c4e4d77553da2b3ec39
authorJoseph Myers <joseph@codesourcery.com>
Thu, 9 Jun 2016 17:24:52 +0000 (9 17:24 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 9 Jun 2016 17:24:52 +0000 (9 17:24 +0000)
tree3e10b7eec069e3f81851833941fd0a28a5a07755
parent59e53a78985be92134f126c5597d15a9998001d1
Fix ldbl-128ibm expm1l (sNaN) (bug 20233).

The ldbl-128ibm version of expm1l returns sNaN for sNaN input.  This
patch fixes it to add such inputs to themselves so that qNaN is
returned in this case.

Tested for powerpc.

[BZ #20233]
* sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
to itself.
ChangeLog
sysdeps/ieee754/ldbl-128ibm/s_expm1l.c