From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14949 invoked by alias); 31 Jul 2008 09:49:14 -0000 Received: (qmail 14778 invoked by uid 48); 31 Jul 2008 09:48:02 -0000 Date: Thu, 31 Jul 2008 09:49:00 -0000 Message-ID: <20080731094802.14777.qmail@sourceware.org> From: "mtk dot manpages at gmail dot com" To: glibc-bugs@sources.redhat.com In-Reply-To: <20080731094541.6794.mtk.manpages@gmail.com> References: <20080731094541.6794.mtk.manpages@gmail.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug math/6794] ilogb() does not raise exceptions or set errno on domain errors 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/msg00166.txt.bz2 ------- Additional Comments From mtk dot manpages at gmail dot com 2008-07-31 09:48 ------- Created an attachment (id=2856) --> (http://sourceware.org/bugzilla/attachment.cgi?id=2856&action=view) test program Sample runs demonstrating problem. In no case is errno set. For the Inf and -Inf cases, no exception is raised. $ /tmp/mt_ilogb 0 errno == 0 fetestexcept() says: FE_INVALID FE_DIVBYZERO ilogb(0.00000000000000000e+00)=-2147483648 0 FE_DIVBYZERO normal $ /tmp/mt_ilogb nan errno == 0 fetestexcept() says: FE_INVALID ilogb(nan)=-2147483648 0 FE_INVALID normal $ /tmp/mt_ilogb inf errno == 0 fetestexcept() says: ilogb(inf)=2147483647 0 0 normal $ /tmp/mt_ilogb -- -inf errno == 0 fetestexcept() says: ilogb(-inf)=2147483647 0 0 normal -- http://sourceware.org/bugzilla/show_bug.cgi?id=6794 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.