From: Alejandro Colomar Date: Mon, 4 Mar 2024 23:20:09 +0000 (+0100) Subject: logb.3: logb(x) is floor(log2(fabs(x))) X-Git-Tag: man-pages-6.7~52 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cf26f5ed31472bd4b960620dc9618eb5089dbef3;p=thirdparty%2Fman-pages.git 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: Reported-by: Morten Welinder Cc: Adhemerval Zanella Netto Cc: Vincent Lefevre Signed-off-by: Alejandro Colomar --- diff --git a/man3/logb.3 b/man3/logb.3 index 7cbb2470a..7a1ad2f4a 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