Module Name: src
Committed By: maya
Date: Wed Sep 27 18:55:50 UTC 2017
Modified Files:
src/lib/libc/gen: isnan.3
Log Message:
move VAX notes to CAVEATS, clarify.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libc/gen/isnan.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/gen/isnan.3
diff -u src/lib/libc/gen/isnan.3:1.2 src/lib/libc/gen/isnan.3:1.3
--- src/lib/libc/gen/isnan.3:1.2 Thu Mar 4 23:49:31 2004
+++ src/lib/libc/gen/isnan.3 Wed Sep 27 18:55:50 2017
@@ -1,4 +1,4 @@
-.\" $NetBSD: isnan.3,v 1.2 2004/03/04 23:49:31 wiz Exp $
+.\" $NetBSD: isnan.3,v 1.3 2017/09/27 18:55:50 maya Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -30,7 +30,7 @@
.\" From: @(#)isinf.3 8.2 (Berkeley) 1/29/94
.\" from: NetBSD: isinf.3,v 1.10 2003/08/07 16:42:52 agc Exp
.\"
-.Dd March 5, 2004
+.Dd September 27, 2017
.Dt ISNAN 3
.Os
.Sh NAME
@@ -52,12 +52,6 @@ is not-a-number
An argument represented in a format wider than its semantic type is
converted to its semantic type first.
The determination is then based on the type of the argument.
-.Ss IEEE 754
-It is determined whether the value of
-.Fa x
-is a NaN.
-.Ss VAX
-NaNs are not supported.
.Sh RETURN VALUES
The
.Fn isnan
@@ -84,3 +78,8 @@ The
.Fn isnan
macro conforms to
.St -isoC-99 .
+.Sh CAVEATS
+On VAX the
+.Fn isnan
+function always returns 0,
+as the architecture doesn't support NaN.