This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/14034] New: acos (-1.0) gives -pi in round-downwards mode on x86
- From: "jsm28 at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Sun, 29 Apr 2012 14:43:22 +0000
- Subject: [Bug math/14034] New: acos (-1.0) gives -pi in round-downwards mode on x86
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=14034
Bug #: 14034
Summary: acos (-1.0) gives -pi in round-downwards mode on x86
Product: glibc
Version: 2.15
Status: NEW
Severity: normal
Priority: P2
Component: math
AssignedTo: unassigned@sourceware.org
ReportedBy: jsm28@gcc.gnu.org
Classification: Unclassified
This was discussed in bug 13942, but is really a separate issue:
On x86, acosf (-1.0f), acos (-1.0) and acosl (-1.0L) all give -pi instead of pi
in round-downwards mode, although the result is specified by ISO C to be in the
range [0, pi]. The same applies to acosl (-1.0L) on x86_64. I'm testing a
patch for this.
--
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.