Bug 13883 - cexp inaccurate for large imaginary part on x86
Summary: cexp inaccurate for large imaginary part on x86
Alias: None
Product: glibc
Classification: Unclassified
Component: math (show other bugs)
Version: 2.15
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
Depends on:
Reported: 2012-03-20 20:40 UTC by Joseph Myers
Modified: 2014-06-26 13:47 UTC (History)
0 users

See Also:
Host: i?86-*-*
Last reconfirmed:
fweimer: security-


Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Myers 2012-03-20 20:40:43 UTC
x86 (32-bit only) has its own implementations of cexp, cexpf and cexpl which use fsincos with inaccurate argument reduction and so suffer from the same problems sincos did when it used fsincos (e.g., cexp (0x1p1023 * I) has no relation to the correct value).  These should probably be removed (with tests for arguments with large imaginary part added similar to those for sincos) so the generic C version is used for x86.
Comment 1 Joseph Myers 2012-03-21 15:30:12 UTC
Fixed by:

commit 1a4ac776ebc9bb07287f59f63e473db531318dff
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Wed Mar 21 15:28:05 2012 +0000

    Remove inaccurate x86 cexp implementations (bug 13883).