diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-10-31 15:14:40 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-10-31 15:14:40 +0000 |
commit | 25f31915e0ed929e2cef0e78765d9804f87fbc44 (patch) | |
tree | c2e87e58455e2d10058b895aabd0aa43ebff6fd0 /lib | |
parent | 77f9b4713239988ecd776c465ee6a812e5982290 (diff) |
Align with C99 (and our implementation) and describe the return values for
NaN and 0 arguments using FP_ILOGB0 and FP_ILOGBNAN.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libm/man/ilogb.3 | 11 |
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 |