This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/15235] Spurious underflow exception for expl ldbl128-ibm
- From: "azanella at linux dot vnet.ibm.com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 06 Mar 2013 14:16:23 +0000
- Subject: [Bug math/15235] Spurious underflow exception for expl ldbl128-ibm
- Auto-submitted: auto-generated
- References: <bug-15235-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=15235
--- Comment #2 from Adhemerval Zanella Netto <azanella at linux dot vnet.ibm.com> 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.