[PATCH] Fix coshl for large arguments (BZ #10817)
Jakub Jelinek
jakub@redhat.com
Tue Oct 27 20:18:00 GMT 2009
Hi!
I've verified w_coshl.c is the only *l.c routine which uses the double
version of __finite instead of __finitel.
2009-10-27 Jakub Jelinek <jakub@redhat.com>
[BZ #10817]
* math/w_coshl.c (__coshl): Use __finitel instead of __finite.
Reported by Ray Chason.
--- libc/math/w_coshl.c.jj 2009-05-16 19:23:36.000000000 +0200
+++ libc/math/w_coshl.c 2009-10-27 09:41:18.000000000 +0100
@@ -38,7 +38,7 @@ static char rcsid[] = "$NetBSD: $";
long double z;
z = __ieee754_coshl(x);
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 */
} else
return z;
Jakub
More information about the Libc-hacker
mailing list