summaryrefslogtreecommitdiffstats
path: root/upstream/archlinux/man3/logb.3
diff options
context:
space:
mode:
Diffstat (limited to 'upstream/archlinux/man3/logb.3')
-rw-r--r--upstream/archlinux/man3/logb.39
1 files changed, 5 insertions, 4 deletions
diff --git a/upstream/archlinux/man3/logb.3 b/upstream/archlinux/man3/logb.3
index c74184ea..965561c2 100644
--- a/upstream/archlinux/man3/logb.3
+++ b/upstream/archlinux/man3/logb.3
@@ -7,7 +7,7 @@
.\"
.\" Inspired by a page by Walter Harms created 2002-08-10
.\"
-.TH logb 3 2023-10-31 "Linux man-pages 6.06"
+.TH logb 3 2024-05-02 "Linux man-pages 6.8"
.SH NAME
logb, logbf, logbl \- get exponent of a floating-point value
.SH LIBRARY
@@ -57,9 +57,10 @@ If
.B FLT_RADIX
is 2,
.BI logb( x )
-is equal to
-.BI floor(log2( x ))\fR,
-except that it is probably faster.
+is similar to
+.BI floor(log2(fabs( x )))\f[R],\f[]
+except that the latter may give an incorrect integer
+due to intermediate rounding.
.P
If
.I x