Message ID | 20240331203829.23591-5-alx@kernel.org |
---|---|
State | New |
Headers | show
Return-Path: <libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=Q8XDbLTO; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4V75bj17nzz1yYH for <incoming@patchwork.ozlabs.org>; Mon, 1 Apr 2024 07:39:29 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4B6EA3858D37 for <incoming@patchwork.ozlabs.org>; Sun, 31 Mar 2024 20:39:27 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by sourceware.org (Postfix) with ESMTPS id 79D903858427 for <libc-alpha@sourceware.org>; Sun, 31 Mar 2024 20:38:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 79D903858427 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=kernel.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 79D903858427 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=145.40.73.55 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711917542; cv=none; b=EJeA9xwbgyVU9NLEG6yJB4NjsdfWuwm88URrhOQuHt8TiB7XRAMuXulxRu2pNlEvL4zqEFQPKsfcD1bvwqEJ/3wYKuWOSCszrFUSVXPbWz/cZB9y96e8zMI9Vf5y0rTKocI728tgm3egPWUwapqAHn7JhKtTvWfLdzlADdTI+KE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711917542; c=relaxed/simple; bh=saG1ryPAxjTbiuIgji8GmfnGqncxhLJl68Bh2AymBxU=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=BCI4bEU7mFnPbrIImmm3FiavAiLu11iRD/KrubAhICA8pe3JSLH3oGlqI5OTD2D0yD023GOump/RXMcHtAXMAP0NL99148l+NMBOTCv8TyQQFfRGNhU0quGSD45v5SkbLA5Sr9Ugq6AJxJdS9PFX/cEVXE0+g1+9MuOeltOe1tM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id E1650CE0B22; Sun, 31 Mar 2024 20:38:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5FB24C433F1; Sun, 31 Mar 2024 20:38:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711917536; bh=saG1ryPAxjTbiuIgji8GmfnGqncxhLJl68Bh2AymBxU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Q8XDbLTOT//63pKx1dkMOFHHBYFyWEDvBGRBkzQTR4tHqa236o7d3IoXsmjLr13/0 rig4Je1ivT/lNVUTvE+LJQNnNUediBCtvc1x3LOM/1C+aKitjztuVnZjZHoDOThY0I hmsmvR3PZAtkm6Jf2Kg7hGbPxvsLHVtxnU/YeoFxInJYedIz00JrhbUBj/vlEXngda peaPaq9WVpG/CJegp+ARnAdKiSWJgyJ8Pj50HLqEQ1u16DUqNDE1W+v1wCXiMErkoF 1Ch/Vy6yohBRZNZh42c1CMuwCTezwJH9CD50+xtnr/ZDS2EQum0P1q8kCaO4nMpKLz teWJpj7TRh9ig== Date: Sun, 31 Mar 2024 22:38:52 +0200 From: Alejandro Colomar <alx@kernel.org> To: libc-alpha@sourceware.org Cc: Alejandro Colomar <alx@kernel.org>, Morten Welinder <mwelinder@gmail.com>, Adhemerval Zanella Netto <adhemerval.zanella@linaro.org>, Vincent Lefevre <vincent@vinc17.net>, DJ Delorie <dj@redhat.com>, Paul Zimmermann <Paul.Zimmermann@inria.fr>, Andreas Schwab <schwab@linux-m68k.org> Subject: [PATCH v3 4/4] manual: significand() uses FLT_RADIX, not 2 Message-ID: <20240331203829.23591-5-alx@kernel.org> X-Mailer: git-send-email 2.43.0 References: <20240305161213.14364-1-alx@kernel.org> <20240331203829.23591-1-alx@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="akix732bsweb4vgj" Content-Disposition: inline In-Reply-To: <20240331203829.23591-1-alx@kernel.org> X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org |
Series |
manual: arith.texi and math.texi fixes
|
expand
|
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
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> --- manual/arith.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)