From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 8A3AF3846401; Wed, 3 Apr 2024 12:29:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8A3AF3846401 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1712147382; bh=mAPHP+bToq0neO36Acvlz3JE2a3jsR0t8I4tCfc89YA=; h=From:To:Subject:Date:From; b=Gw6kwXJjIf63m9OGnuphTh/QyKekZvfTeDnv0Y49v84l+XxJW9YoDmv4i7ssDy7ho eEUO5TcoTikJufqUxGN6pdWAYDdVts+85jdfq4hBnMsxze0H/F4h/gmxL1eY9qDJxm aupv1HQxLN46N9vIkhGdLB/8q1EFbJ+uxyxugSQ4= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc] manual: significand() uses FLT_RADIX, not 2 X-Act-Checkin: glibc X-Git-Author: Alejandro Colomar X-Git-Refname: refs/heads/master X-Git-Oldrev: e01b3b86e821e1132da76ce79ebb301033141e6d X-Git-Newrev: 95c70fd0d467450e75354316453824693f07c3cc Message-Id: <20240403122942.8A3AF3846401@sourceware.org> Date: Wed, 3 Apr 2024 12:29:42 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=95c70fd0d467450e75354316453824693f07c3cc commit 95c70fd0d467450e75354316453824693f07c3cc Author: Alejandro Colomar 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: Reported-by: Morten Welinder Cc: Adhemerval Zanella Netto Cc: Vincent Lefevre Cc: DJ Delorie Cc: Paul Zimmermann Cc: Andreas Schwab Signed-off-by: Alejandro Colomar Reviewed-by: DJ Delorie 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