Module Name: src
Committed By: maya
Date: Wed Sep 27 09:04:30 UTC 2017
Modified Files:
src/lib/libc/gen: isinf.3
Log Message:
Move VAX notes to CAVEATS, clarify that it just returns zero
The VAX isinf implementation is in sys/arch/vax/include/math.h.
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/lib/libc/gen/isinf.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/isinf.3
diff -u src/lib/libc/gen/isinf.3:1.12 src/lib/libc/gen/isinf.3:1.13
--- src/lib/libc/gen/isinf.3:1.12 Thu Mar 4 23:47:56 2004
+++ src/lib/libc/gen/isinf.3 Wed Sep 27 09:04:30 2017
@@ -1,4 +1,4 @@
-.\" $NetBSD: isinf.3,v 1.12 2004/03/04 23:47:56 wiz Exp $
+.\" $NetBSD: isinf.3,v 1.13 2017/09/27 09:04:30 maya Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)isinf.3 8.2 (Berkeley) 1/29/94
.\"
-.Dd March 5, 2004
+.Dd September 27, 2017
.Dt ISINF 3
.Os
.Sh NAME
@@ -50,12 +50,6 @@ is an infinity (positive or negative).
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 an infinity.
-.Ss VAX
-Infinities are not supported.
.Sh RETURN VALUES
The
.Fn isinf
@@ -82,3 +76,8 @@ The
.Fn isinf
macro conforms to
.St -isoC-99 .
+.Sh CAVEATS
+On VAX the
+.Fn isinf
+function always returns 0,
+as the architecture doesn't have a representation for infinity.