Fix generic ldbl-128 expm1l just like x86-64 and i386 variants were.

* sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
	large parameters.
This commit is contained in:
David S. Miller 2012-03-13 00:31:48 -07:00
parent 10f62770e1
commit 2a8ab7f265
2 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2012-03-13 David S. Miller <davem@davemloft.net>
* sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
large parameters.
* sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
* sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall

View File

@ -102,6 +102,11 @@ __expm1l (long double x)
ix = u.parts32.w0;
sign = ix & 0x80000000;
ix &= 0x7fffffff;
if (!sign && ix >= 0x40060000)
{
/* If num is positive and exp >= 6 use plain exp. */
return __expl (x);
}
if (ix >= 0x7fff0000)
{
/* Infinity. */