summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2020-10-31 15:14:39 +0000
committerkettenis <kettenis@openbsd.org>2020-10-31 15:14:39 +0000
commit60b8f499d1e7fcc5ee9e2b96c215ba24acc921fb (patch)
treed999a51353c6df6619873e84400df0ad02b90754
parentrelease the correct lock in noise_remote_begin_session() (diff)
downloadwireguard-openbsd-60b8f499d1e7fcc5ee9e2b96c215ba24acc921fb.tar.xz
wireguard-openbsd-60b8f499d1e7fcc5ee9e2b96c215ba24acc921fb.zip
Align with C99 (and our implementation) and describe the return values for
NaN and 0 arguments using FP_ILOGB0 and FP_ILOGBNAN.
-rw-r--r--lib/libm/man/ilogb.311
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/libm/man/ilogb.3 b/lib/libm/man/ilogb.3
index e2e2a468555..ecd760581f8 100644
--- a/lib/libm/man/ilogb.3
+++ b/lib/libm/man/ilogb.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ilogb.3,v 1.7 2016/04/26 19:49:22 tb Exp $
+.\" $OpenBSD: ilogb.3,v 1.8 2020/10/31 15:14:39 kettenis Exp $
.\" Copyright (c) 1985, 1991 Regents of the University of California.
.\" All rights reserved.
.\"
@@ -28,7 +28,7 @@
.\"
.\" from: @(#)ieee.3 6.4 (Berkeley) 5/6/91
.\"
-.Dd $Mdocdate: April 26 2016 $
+.Dd $Mdocdate: October 31 2020 $
.Dt ILOGB 3
.Os
.Sh NAME
@@ -52,11 +52,14 @@ returns
in integer format.
.Fn ilogb \(+-infinity
returns
-.Dv INT_MAX
+.Dv INT_MAX ,
+.Fn ilogb NaN
+returns
+.Dv FP_ILOGBNAN
and
.Fn ilogb 0
returns
-.Dv INT_MIN .
+.Dv FP_ILOGB0 .
The
.Fn ilogbf
function is a single precision version of