mirror of
git://sourceware.org/git/glibc.git
synced 2025-02-11 12:50:58 +08:00
Fix range checks in coshl.
This commit is contained in:
parent
823bc6da65
commit
98363ded87
@ -1,3 +1,9 @@
|
|||||||
|
2009-10-27 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
[BZ #10817]
|
||||||
|
* math/w_coshl.c (__coshl): Use __finitel instead of __finite.
|
||||||
|
Reported by Ray Chason.
|
||||||
|
|
||||||
2009-10-21 H.J. Lu <hongjiu.lu@intel.com>
|
2009-10-21 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
|
* sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
|
||||||
|
@ -38,8 +38,8 @@ static char rcsid[] = "$NetBSD: $";
|
|||||||
long double z;
|
long double z;
|
||||||
z = __ieee754_coshl(x);
|
z = __ieee754_coshl(x);
|
||||||
if(_LIB_VERSION == _IEEE_ || __isnanl(x)) return z;
|
if(_LIB_VERSION == _IEEE_ || __isnanl(x)) return z;
|
||||||
if(!__finite(z) && __finite(x)) {
|
if(!__finitel(z) && __finitel(x)) {
|
||||||
return __kernel_standard(x,x,205); /* cosh overflow */
|
return __kernel_standard(x,x,205); /* cosh overflow */
|
||||||
} else
|
} else
|
||||||
return z;
|
return z;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user