From jakub@redhat.com Tue Oct 27 20:18:00 2009 From: jakub@redhat.com (Jakub Jelinek) Date: Tue, 27 Oct 2009 20:18:00 -0000 Subject: [PATCH] Fix coshl for large arguments (BZ #10817) Message-ID: <20091027085311.GC3047@sunsite.ms.mff.cuni.cz> 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 [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