From patchwork Wed Jan 9 18:42:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gabriel F. T. Gomes" X-Patchwork-Id: 31018 X-Patchwork-Delegate: joseph@codesourcery.com Received: (qmail 78238 invoked by alias); 9 Jan 2019 18:42:35 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 78220 invoked by uid 89); 9 Jan 2019 18:42:34 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=H*Ad:D*linux.vnet.ibm.com, H*Ad:D*vnet.ibm.com, H*F:D*br, states X-HELO: mo19.mail-out.ovh.net From: "Gabriel F. T. Gomes" To: CC: Subject: [PATCH] Remove misleading statement about raising of FE_INVALID (bug 24078) Date: Wed, 9 Jan 2019 16:42:23 -0200 Message-ID: <20190109184223.32577-1-gabriel@inconstante.eti.br> MIME-Version: 1.0 X-Ovh-Tracer-Id: 4653625792157372099 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtledrfedugdduudejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenuc See bugzilla entry for a longer description. -- 8< -- In the floating-point comparisons `==' and `<', there is no difference in behavior when it comes to the raising of FE_INVALID exceptions. This patch removes, from the manual, a sentence that states otherwise. [BZ #24078] * manual/arith.texi (Floating-Point Comparison Functions): Remove statement about `==' and `!=' not raising floating-point exceptions. --- manual/arith.texi | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/manual/arith.texi b/manual/arith.texi index 6ca7902b3d..163ef7ef25 100644 --- a/manual/arith.texi +++ b/manual/arith.texi @@ -1947,9 +1947,7 @@ int v = a < 1.0; @end smallexample @noindent -will raise an exception if @var{a} is NaN. (This does @emph{not} -happen with @code{==} and @code{!=}; those merely return false and true, -respectively, when NaN is examined.) Frequently this exception is +will raise an exception if @var{a} is NaN. Frequently this exception is undesirable. @w{ISO C99} therefore defines comparison functions that do not raise exceptions when NaN is examined. All of the functions are implemented as macros which allow their arguments to be of any