This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug math/15235] Spurious underflow exception for expl ldbl128-ibm


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]