Bug 15405 - csin, csinh, ccos, ccosh missing underflow exceptions
Summary: csin, csinh, ccos, ccosh missing underflow exceptions
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: math (show other bugs)
Version: 2.17
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-26 15:26 UTC by Joseph Myers
Modified: 2014-06-13 18:14 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Myers 2013-04-26 15:26:46 UTC
Similar to bug 14478 (fixed) for cexp, the functions csin, csinh, ccos, ccosh are missing underflow exceptions when the final result underflows but the multiplication generating it is exact although the mathematical result of the function is not exactly representable.  Examples showing this on x86_64 are:

csin (0x1p-1074 + 0x1p-1022i)
csinh (0x1p-1022 + 0x1p-1074i)
ccos (0x1p-954 + 0x1p-120i)
ccosh (0x1p-120 + 0x1p-954i)
Comment 1 Joseph Myers 2013-04-26 19:27:43 UTC
Fixed for 2.18 by:

commit f0302940e7c2acb587971e3c99dfbd00aa4e2134
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Fri Apr 26 19:25:19 2013 +0000

    Fix csin, csinh, ccos, ccosh missing underflows (bug 15405).