From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22316 invoked by alias); 27 Oct 2009 20:18:37 -0000 Received: (qmail 22300 invoked by uid 22791); 27 Oct 2009 20:18:36 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from sunsite.ms.mff.cuni.cz (HELO sunsite.mff.cuni.cz) (195.113.15.26) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 27 Oct 2009 20:18:31 +0000 Received: from sunsite.mff.cuni.cz (localhost [127.0.0.1]) by sunsite.mff.cuni.cz (8.14.3/8.14.3) with ESMTP id n9R8rBwS024287; Tue, 27 Oct 2009 09:53:11 +0100 Received: (from jakub@localhost) by sunsite.mff.cuni.cz (8.14.3/8.14.3/Submit) id n9R8rBZu024286; Tue, 27 Oct 2009 09:53:11 +0100 Date: Tue, 27 Oct 2009 20:18:00 -0000 From: Jakub Jelinek To: Ulrich Drepper Cc: Glibc hackers Subject: [PATCH] Fix coshl for large arguments (BZ #10817) Message-ID: <20091027085311.GC3047@sunsite.ms.mff.cuni.cz> Reply-To: Jakub Jelinek MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) Mailing-List: contact libc-hacker-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sourceware.org X-SW-Source: 2009-10/txt/msg00000.txt.bz2 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