This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/15479] New: ceil, floor and round and trunc raise inexact exception
- From: "jsm28 at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 16 May 2013 20:42:40 +0000
- Subject: [Bug math/15479] New: ceil, floor and round and trunc raise inexact exception
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=15479
Bug #: 15479
Summary: ceil, floor and round and trunc raise inexact
exception
Product: glibc
Version: 2.17
Status: NEW
Severity: normal
Priority: P2
Component: math
AssignedTo: unassigned@sourceware.org
ReportedBy: jsm28@gcc.gnu.org
Classification: Unclassified
At least on x86_64, at least the float versions of ceil, floor and round raise
the "inexact" exception. Although permitted by C11, the proposed C bindings to
IEEE 754-2008 remove the permission to raise this exception (these are
functions with fully-defined, always-exact floating-point results that do not
depend on the current rounding mode), and the glibc versions should also stop
raising it (which for the generic C versions looks like it will just be a
matter of removing code that's there for the sole purpose of raising this
exception).
On x86_64, trunc has the same issue for long double only, not float or double.
--
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.