Fix ldbl-128 expm1l spurious underflow (bug 16539).
authorJoseph Myers <joseph@codesourcery.com>
Mon, 30 Jun 2014 17:38:16 +0000 (17:38 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Mon, 30 Jun 2014 17:38:16 +0000 (17:38 +0000)
commitce9c5b3e955746a9187ffde9b16feea4a357c86a
treee60ee24b2da9fb3291a4667607040ca7d9337fa1
parent3a6e988706d1ce2c88c933619d1f312098698ecd
Fix ldbl-128 expm1l spurious underflow (bug 16539).

This patch fixes spurious underflows from ldbl-128 expm1l, as reported
in <https://sourceware.org/ml/libc-alpha/2014-06/msg00835.html> and
exposed by the tests added for such a bug in the x86 / x86-64
version.  The bug and fix are essentially the same, so no separate bug
is filed in Bugzilla.

Tested for mips64.

[BZ #16539]
* sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
(__expm1l): Return argument unchanged when small but not
subnormal.
ChangeLog
sysdeps/ieee754/ldbl-128/s_expm1l.c