From patchwork Tue Mar 5 16:12:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alejandro Colomar X-Patchwork-Id: 86821 X-Patchwork-Delegate: dj@redhat.com Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0FB0E385840F for ; Tue, 5 Mar 2024 16:13:37 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by sourceware.org (Postfix) with ESMTPS id 647FF3858296 for ; Tue, 5 Mar 2024 16:12:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 647FF3858296 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 647FF3858296 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=139.178.84.217 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709655157; cv=none; b=m1GhntWNlHFuyA61JywB1XdGB9X0I0knUW/fYD7zxjQYI8Tq/lz7z9bARkPpvPTmWMN7MwQwgKRGEtRO65oH6mHIBVmkmrYYaxuanTLRkY2ydVVo/ZTqJJ8q+YXkhl2qDzV22pdm0S1DqGEZvuJFcQ4JlFra38ptvTYuhEbbUd4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709655157; c=relaxed/simple; bh=4UUBYsUKFvSfKYpX6qjeKWVk0IK/yhTsdji6Gjr1hBM=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=aIOaxeJfgu0vVBD3Z1/IljmU4z2KnnMyR4E+N1pXm39H2leEK5Pq2ld9AARWUq8c3ejyLogd8sNDfDVODBfEfsLXI4XsqdCZG5GTDADY0CkDk0PyRAXm02LfYvQCs351613BSZbZALP+D+/xC2IwB4mxnHNgJxPrna0DdjUVQVU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id C7A1761361; Tue, 5 Mar 2024 16:12:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34E03C433C7; Tue, 5 Mar 2024 16:12:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709655153; bh=4UUBYsUKFvSfKYpX6qjeKWVk0IK/yhTsdji6Gjr1hBM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OA6rGrxQxZv/2po8/WvRaZHpTjUmjRsXK5nxWVQVObLAwna+jHDHyLKK19fDGWyiR bfMkKdoPXI3lXXjjymhKhsrCvOaWMy3XbOd5k+Lun/03CIwpWMEyHDJ80S64GHNt5Y z0YAvrYtyPsJxC7UeOcsrCK7QWWtwr4Cj3Mi3b/8+Ouugk3nfODaISLN6JjslTzpkg OjWFevYULszqaI38MQeUizvRMr0MTq6FCO8H0YCxQPd87a//o8rpdOc7GGf6f/l9ys RO9VfgWIqzkPBrrmIdA6DPH3DwTsjm/EcqS9Znhljucyh/z7SqaFhH6Cgd7Hvq+1RU m+mcv2Qm4AV5A== Date: Tue, 5 Mar 2024 17:12:30 +0100 From: Alejandro Colomar To: libc-alpha@sourceware.org Cc: Alejandro Colomar , Morten Welinder , Vincent Lefevre , Adhemerval Zanella Netto Subject: [PATCH v2 3/3] manual: Cube roots are rarely representable Message-ID: <20240305161213.14364-4-alx@kernel.org> X-Mailer: git-send-email 2.43.0 References: <20240305161213.14364-1-alx@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240305161213.14364-1-alx@kernel.org> X-Spam-Status: No, score=-10.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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+patchwork=sourceware.org@sourceware.org Link: Reported-by: Morten Welinder Cowritten-by: Morten Welinder Cc: Adhemerval Zanella Netto Cc: Vincent Lefevre Signed-off-by: Alejandro Colomar --- manual/math.texi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/manual/math.texi b/manual/math.texi index 79bf3a1401..dfb685a71e 100644 --- a/manual/math.texi +++ b/manual/math.texi @@ -700,8 +700,12 @@ Mathematically, it should return a complex number. @standardsx{cbrtfN, TS 18661-3:2015, math.h} @standardsx{cbrtfNx, TS 18661-3:2015, math.h} @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}} -These functions return the cube root of @var{x}. They cannot -fail; every representable real value has a representable real cube root. +These functions return the cube root of @var{x}. +They cannot fail; +every representable real value +has a real cube root, +and rounding it to a representable value +never causes overflow nor underflow. @end deftypefun @deftypefun double hypot (double @var{x}, double @var{y})