This is the mail archive of the glibc-bugs@sources.redhat.com 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/604] New: nextafter and nexttoward doesn't follow POSIX


POSIX says

RETURN VALUE

    Upon successful completion, these functions shall return the next
representable floating-point value following x in the direction of y.

    If x== y, y (of the type x) shall be returned.

    If x is finite and the correct function value would overflow, a range error
shall occur and ±HUGE_VAL, ±HUGE_VALF, and ±HUGE_VALL (with the same sign as x)
shall be returned as appropriate for the return type of the function.

    [MX] [Option Start] If x or y is NaN, a NaN shall be returned.

    If x!= y and the correct function value is subnormal, zero, or underflows, a
range error shall occur, and either the correct function value (if
representable) or 0.0 shall be returned. [Option End]

But glibc doesn't set errno nor raise exception.

-- 
           Summary: nextafter and nexttoward doesn't follow POSIX
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
        AssignedTo: aj at suse dot de
        ReportedBy: hjl at lucon dot org
                CC: glibc-bugs at sources dot redhat dot com


http://sources.redhat.com/bugzilla/show_bug.cgi?id=604

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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