This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug math/604] New: nextafter and nexttoward doesn't follow POSIX
- From: "hjl at lucon dot org" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 9 Dec 2004 22:51:45 -0000
- Subject: [Bug math/604] New: nextafter and nexttoward doesn't follow POSIX
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
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.