From patchwork Sun Mar 31 20:38:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 1918355 Return-Path: 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 ; 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 ; 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 ; 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 To: libc-alpha@sourceware.org Cc: Alejandro Colomar , Morten Welinder , Adhemerval Zanella Netto , Vincent Lefevre , DJ Delorie , Paul Zimmermann , Andreas Schwab 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-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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org 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 --- 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