aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2024-03-05 00:20:09 +0100
committerAlejandro Colomar <alx@kernel.org>2024-03-12 18:13:43 +0100
commitcf26f5ed31472bd4b960620dc9618eb5089dbef3 (patch)
tree86dfc2caa4d3f454f61f02a0e4210274e477e3d0
parent7656f2f198363ac0787751b379b205195fd7e0bb (diff)
downloadman-pages-cf26f5ed31472bd4b960620dc9618eb5089dbef3.tar.gz
logb.3: logb(x) is floor(log2(fabs(x)))
log2(3) doesn't accept negative input, but it seems logb(3) does accept it. Link: <https://lore.kernel.org/linux-man/ZeYKUOKYS7G90SaV@debian/T/#u> Reported-by: Morten Welinder <mwelinder@gmail.com> Cc: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org> Cc: Vincent Lefevre <vincent@vinc17.net> Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man3/logb.32
1 files changed, 1 insertions, 1 deletions
diff --git a/man3/logb.3 b/man3/logb.3
index 7cbb2470ab..7a1ad2f4a7 100644
--- a/man3/logb.3
+++ b/man3/logb.3
@@ -58,7 +58,7 @@ If
is 2,
.BI logb( x )
is equal to
-.BI floor(log2( x ))\fR,
+.BI floor(log2(fabs( x )))\f[R],\f[]
except that it is probably faster.
.P
If