Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen Mention more of the special cases.
details: https://anonhg.NetBSD.org/src/rev/26fce10a1f54
branches: trunk
changeset: 475908:26fce10a1f54
user: mycroft <mycroft%NetBSD.org@localhost>
date: Sun Aug 29 18:52:18 1999 +0000
description:
Mention more of the special cases.
diffstat:
lib/libc/gen/ldexp.3 | 20 ++++++++++++++++----
1 files changed, 16 insertions(+), 4 deletions(-)
diffs (39 lines):
diff -r 29bc205a7b92 -r 26fce10a1f54 lib/libc/gen/ldexp.3
--- a/lib/libc/gen/ldexp.3 Sun Aug 29 18:40:50 1999 +0000
+++ b/lib/libc/gen/ldexp.3 Sun Aug 29 18:52:18 1999 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: ldexp.3,v 1.5 1998/02/05 18:47:27 perry Exp $
+.\" $NetBSD: ldexp.3,v 1.6 1999/08/29 18:52:18 mycroft Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -62,14 +62,26 @@
times 2 raised to the power
.Fa exp .
.Pp
-If the resultant value would cause an overflow,
+If the input
+.Va x
+is a NaN, infinity, or 0.0, it is returned unchanged.
+.Pp
+If the result would cause an overflow,
the global variable
.Va errno
is set to
.Er ERANGE
and the value
-.Dv HUGE
-is returned.
+.Dv HUGE_VAL
+is returned, with the same sign as
+.Fa x .
+.Pp
+If the result would cause underflow to 0.0,
+the global variable
+.Va errno
+is set to
+.Er ERANGE
+and the value 0.0 is returned.
.Sh SEE ALSO
.Xr frexp 3 ,
.Xr modf 3 ,
Home |
Main Index |
Thread Index |
Old Index