public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/15214] New: cacos, casin, and casinh wrongly underflow ldbl-128ibm
@ 2013-02-28 19:34 azanella at linux dot vnet.ibm.com
  2013-02-28 19:37 ` [Bug math/15214] " azanella at linux dot vnet.ibm.com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: azanella at linux dot vnet.ibm.com @ 2013-02-28 19:34 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=15214

             Bug #: 15214
           Summary: cacos, casin, and casinh wrongly underflow ldbl-128ibm
           Product: glibc
           Version: 2.17
            Status: NEW
          Severity: minor
          Priority: P2
         Component: math
        AssignedTo: unassigned@sourceware.org
        ReportedBy: azanella@linux.vnet.ibm.com
    Classification: Unclassified


The following math/libm-test.inc tests trigger spurious underflows exceptions
for ldbl-128ibm:

cacos (0x1p500 + 1.0 i)
cacos (0x1p500 - 1.0 i)
cacos (-0x1p500 + 1.0 i)
cacos (-0x1p500 - 1.0 i)
cacos (1.0 + 0x1p500 i)
cacos (-1.0 + 0x1p500 i)
cacos (1.0 - 0x1p500 i)
cacos (-1.0 - 0x1p500 i)
casin (0x1p500 + 1.0 i)
casin (0x1p500 - 1.0 i)
casin (-0x1p500 + 1.0 i)
casin (-0x1p500 - 1.0 i)
casin (1.0 + 0x1p500 i)
casin (-1.0 + 0x1p500 i)
casin (1.0 - 0x1p500 i)
casin (-1.0 - 0x1p500 i)
casinh (0x1p500 + 1.0 i)
casinh (0x1p500 - 1.0 i)
casinh (-0x1p500 + 1.0 i)
casinh (-0x1p500 - 1.0 i)
casinh (1.0 + 0x1p500 i)
casinh (-1.0 + 0x1p500 i)
casinh (1.0 - 0x1p500 i) 
casinh (-1.0 - 0x1p500 i)

This is in fact an issue with __ieee754_logl implementation: in the domain
reduction phase, where the algorithm transform log(u) -> log(t) + log(u/t) and
log(u/t) -> log(1+(u-t)/t), if the input is high enough the calculation
'1+(u-t)/t' might generate subnormal numbers.

-- 
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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-13 18:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-28 19:34 [Bug math/15214] New: cacos, casin, and casinh wrongly underflow ldbl-128ibm azanella at linux dot vnet.ibm.com
2013-02-28 19:37 ` [Bug math/15214] " azanella at linux dot vnet.ibm.com
2013-03-28 13:00 ` azanella at linux dot vnet.ibm.com
2014-06-13 18:46 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).