public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Adhemerval Zanella <azanella@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc] manual: significand() uses FLT_RADIX, not 2
Date: Wed,  3 Apr 2024 12:29:42 +0000 (GMT)	[thread overview]
Message-ID: <20240403122942.8A3AF3846401@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=95c70fd0d467450e75354316453824693f07c3cc

commit 95c70fd0d467450e75354316453824693f07c3cc
Author: Alejandro Colomar <alx@kernel.org>
Date:   Sun Mar 31 22:38:52 2024 +0200

    manual: significand() uses FLT_RADIX, not 2
    
    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>

Diff:
---
 manual/arith.texi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/manual/arith.texi b/manual/arith.texi
index 0742c08ac4..034d9d2ba5 100644
--- a/manual/arith.texi
+++ b/manual/arith.texi
@@ -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

                 reply	other threads:[~2024-04-03 12:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240403122942.8A3AF3846401@sourceware.org \
    --to=azanella@sourceware.org \
    --cc=glibc-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).