From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18251 invoked by alias); 7 Nov 2002 13:43:43 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 18244 invoked from network); 7 Nov 2002 13:43:43 -0000 Received: from unknown (HELO Cantor.suse.de) (213.95.15.193) by sources.redhat.com with SMTP; 7 Nov 2002 13:43:43 -0000 Received: from Hermes.suse.de (Charybdis.suse.de [213.95.15.201]) by Cantor.suse.de (Postfix) with ESMTP id 0D0E216397; Thu, 7 Nov 2002 14:43:33 +0100 (MET) X-Authentication-Warning: sykes.suse.de: schwab set sender to schwab@suse.de using -f To: Gabriel Dos Reis Cc: Jan Hubicka , gcc-patches@gcc.gnu.org Subject: Re: Converting floor to rint References: <20021106175441.GZ22059@kam.mff.cuni.cz> <20021106180930.GA22066@redhat.com> <20021106211059.GB1316@atrey.karlin.mff.cuni.cz> <20021106222922.GH1316@atrey.karlin.mff.cuni.cz> <20021107092112.GF7964@kam.mff.cuni.cz> <20021107100359.GI7964@kam.mff.cuni.cz> <20021107125643.GA11315@atrey.karlin.mff.cuni.cz> X-Yow: Our father who art in heaven.. I sincerely pray that SOMEBODY at this table will PAY for my SHREDDED WHAT and ENGLISH MUFFIN.. and also leave a GENEROUS TIP... From: Andreas Schwab Date: Thu, 07 Nov 2002 05:43:00 -0000 In-Reply-To: (Gabriel Dos Reis's message of "07 Nov 2002 14:23:43 +0100") Message-ID: User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.3.50 (ia64-suse-linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2002-11/txt/msg00454.txt.bz2 Gabriel Dos Reis writes: |> "may" part refers to the fact whether the programmer might want |> to run rint() under a particular floating-point control mode that |> would permit rint() to raise the inexact exception. |> rint() cannot unconditionally set it. If FENV_ACCESS is on and |> FE_INEXACT is supported then rint() should raise the exception if |> appropriate. That is my understanding. If the implementation defines __STDC_IEC_559__ then F.9.6.4 applies. I have no copy of IEC 60559, but if it states that rint must raise the exception then it must do it independent of FENV_ACCESS. Otherwise, if __STDC_IEC_559__ is not defined, then no requirements on the exceptions are stated for rint, since 7.12.9.4 does not have a "shall". Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."