From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22369 invoked by alias); 6 Mar 2013 14:16:59 -0000 Received: (qmail 22030 invoked by uid 48); 6 Mar 2013 14:16:24 -0000 From: "azanella at linux dot vnet.ibm.com" To: glibc-bugs@sourceware.org Subject: [Bug math/15235] Spurious underflow exception for expl ldbl128-ibm Date: Wed, 06 Mar 2013 14:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: math X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: azanella at linux dot vnet.ibm.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: azanella at linux dot vnet.ibm.com X-Bugzilla-Target-Milestone: 2.18 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2013-03/txt/msg00027.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=15235 --- Comment #2 from Adhemerval Zanella Netto 2013-03-06 14:16:23 UTC --- I followed your idea on 28afd92dbdb4fef4358051aad5cb944a9527a4b5 where you added a libc_feholdexcept_setround (&env, FE_TONEAREST) (later replaced to SET_RESTORE_ROUND (FE_TONEAREST)). The exception holding on dbl-64 prevent this implementation to also create an underflow exception with same argument (-744.44...) . More specifically: 146 if (res == (res + eps*cor)) 147 { binexp.i[HIGH_HALF] = 0x00100000; 148 retval = (res-1.0)*binexp.x; 149 goto ret; 150 } Also creates an underflow without the feholdexcept being set. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.