summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2017-08-29 15:03:37 +0000
committermillert <millert@openbsd.org>2017-08-29 15:03:37 +0000
commitfe8883f0ddf2e8092bc71e51e1796cbb4d703eab (patch)
treefd899a96d405642c7a884578b59343922d19f919 /lib/libc
parentavoid double search. Fix abieber's commit vaguely. (todo: speed-ups) (diff)
downloadwireguard-openbsd-fe8883f0ddf2e8092bc71e51e1796cbb4d703eab.tar.xz
wireguard-openbsd-fe8883f0ddf2e8092bc71e51e1796cbb4d703eab.zip
isunordered() returns true if at least one of the arguments is NaN
OK espie@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/isgreater.310
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/libc/gen/isgreater.3 b/lib/libc/gen/isgreater.3
index 5307cc426e8..4883c63abe5 100644
--- a/lib/libc/gen/isgreater.3
+++ b/lib/libc/gen/isgreater.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: isgreater.3,v 1.3 2011/07/07 13:30:28 jmc Exp $
+.\" $OpenBSD: isgreater.3,v 1.4 2017/08/29 15:03:37 millert Exp $
.\"
.\" Copyright (c) 2003 David Schultz <das@FreeBSD.ORG>
.\" All rights reserved.
@@ -26,7 +26,7 @@
.\"
.\" $FreeBSD: src/lib/libc/gen/isgreater.3,v 1.3 2005/02/06 03:23:31 das Exp $
.\"
-.Dd $Mdocdate: July 7 2011 $
+.Dd $Mdocdate: August 29 2017 $
.Dt ISGREATER 3
.Os
.Sh NAME
@@ -79,11 +79,7 @@ macro takes arguments
.Fa x
and
.Fa y
-and returns non-zero if and only if neither
-.Fa x
-nor
-.Fa y
-are NaNs.
+and returns non-zero if at least one of the arguments is NaN.
For any pair of floating-point values, one
of the relationships (less, greater, equal, unordered) holds.
.Sh SEE ALSO