This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug math/15479] New: ceil, floor and round and trunc raise inexact exception


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]