From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2520 invoked by alias); 7 Nov 2002 12:56:45 -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 2505 invoked from network); 7 Nov 2002 12:56:44 -0000 Received: from unknown (HELO atrey.karlin.mff.cuni.cz) (195.113.31.123) by sources.redhat.com with SMTP; 7 Nov 2002 12:56:44 -0000 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 4018) id 726FD4F9AD; Thu, 7 Nov 2002 13:56:43 +0100 (CET) Date: Thu, 07 Nov 2002 04:56:00 -0000 From: Jan Hubicka To: Gabriel Dos Reis Cc: Jan Hubicka , Richard Henderson , gcc-patches@gcc.gnu.org, aj@suse.de Subject: Re: Converting floor to rint Message-ID: <20021107125643.GA11315@atrey.karlin.mff.cuni.cz> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i X-SW-Source: 2002-11/txt/msg00444.txt.bz2 > Jan Hubicka writes: > > [...] > > | > [#2] The rint functions differ from the nearbyint functions > | > (7.12.9.3) only in that the rint functions may raise the > | ^^^ > | Does this imply that I can implement rint as nearbyint call and never > | cause the exception and always use frndint instruction for it that does > | not trap? > > If FE_INEXACT is on, that is incorrect. But why the standard don't say that rint function will raise the interrupt? I would interpred may as it can behave that way or don't have to. I've switched to nearbyint in my patch, but would like to understand this detail. Honza > > -- Gaby