mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
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:
parent
10f62770e1
commit
2a8ab7f265
@ -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
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user