From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26733 invoked by alias); 31 Jul 2008 13:55:08 -0000 Received: (qmail 23106 invoked by uid 48); 31 Jul 2008 13:53:55 -0000 Date: Thu, 31 Jul 2008 13:55:00 -0000 Message-ID: <20080731135355.23105.qmail@sourceware.org> From: "mtk dot manpages at gmail dot com" To: glibc-bugs@sources.redhat.com In-Reply-To: <20080731135225.6810.mtk.manpages@gmail.com> References: <20080731135225.6810.mtk.manpages@gmail.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug math/6810] tgamma() does not set errno for underflow error X-Bugzilla-Reason: CC Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2008-07/txt/msg00215.txt.bz2 ------- Additional Comments From mtk dot manpages at gmail dot com 2008-07-31 13:53 ------- Created an attachment (id=2882) --> (http://sourceware.org/bugzilla/attachment.cgi?id=2882&action=view) test program Sample runs demonstrating the problem: $ /tmp/mt_tgamma 1e3 errno == ERANGE fetestexcept() says: FE_OVERFLOW FE_INEXACT tgamma(1.00000000000000000e+03)=inf ERANGE FE_OVERFLOW +inf $ /tmp/mt_tgamma -- -100000.5 errno == 0 fetestexcept() says: FE_UNDERFLOW FE_INEXACT tgamma(-1.00000500000000000e+05)=-0.00000000000000000e+00 0 FE_UNDERFLOW -0 -- http://sourceware.org/bugzilla/show_bug.cgi?id=6810 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.