]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
manual: significand() uses FLT_RADIX, not 2
authorAlejandro Colomar <alx@kernel.org>
Sun, 31 Mar 2024 20:38:52 +0000 (22:38 +0200)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 3 Apr 2024 12:16:22 +0000 (09:16 -0300)
It's implemented using scalb(), which uses FLT_RADIX, AFAIK.

Link: <https://lore.kernel.org/linux-man/ZeYKUOKYS7G90SaV@debian/T/#mf21ab57e16b92eb6be6c7df79dc0eb43d4454056>
Reported-by: Morten Welinder <mwelinder@gmail.com>
Cc: Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>
Cc: Vincent Lefevre <vincent@vinc17.net>
Cc: DJ Delorie <dj@redhat.com>
Cc: Paul Zimmermann <Paul.Zimmermann@inria.fr>
Cc: Andreas Schwab <schwab@linux-m68k.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Reviewed-by: DJ Delorie <dj@redhat.com>
manual/arith.texi

index 0742c08ac4f3f4f444e3a174922907b3aa4ebafc..034d9d2ba58c5ed070b5964887eca3026b687136 100644 (file)
@@ -1395,7 +1395,7 @@ The @code{scalb} function is the BSD name for @code{ldexp}.
 @standards{BSD, math.h}
 @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}}
 @code{significand} returns the mantissa of @var{x} scaled to the range
-@math{[1, 2)}.
+@math{[1, @code{FLT_RADIX})}.
 It is equivalent to @w{@code{scalb (@var{x}, (double) -ilogb (@var{x}))}}.
 
 This function exists mainly for use in certain standardized tests