From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12926 invoked by alias); 7 Nov 2002 13:31:01 -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 12907 invoked from network); 7 Nov 2002 13:30:55 -0000 Received: from unknown (HELO atrey.karlin.mff.cuni.cz) (195.113.31.123) by sources.redhat.com with SMTP; 7 Nov 2002 13:30:55 -0000 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 4018) id DB6EC4F9B0; Thu, 7 Nov 2002 14:30:54 +0100 (CET) Date: Thu, 07 Nov 2002 05:31:00 -0000 From: Jan Hubicka To: Gabriel Dos Reis Cc: Andreas Schwab , Jan Hubicka , Richard Henderson , gcc-patches@gcc.gnu.org, aj@suse.de Subject: Re: Converting floor to rint Message-ID: <20021107133054.GB11315@atrey.karlin.mff.cuni.cz> References: <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> 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/msg00450.txt.bz2 > Andreas Schwab writes: > > | |> 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. > | > | Yes, rint is the weaker function. > > Thanks. I didn't understand Jan's question in that way. Thanks > for clarifying. > > | The implementation of nearbyint must > | make sure that no inexact exception is raised, whereas for rint this is > | not necessary. That means that if you have a round instruction that never > | raises the exception it can be used to implement both functions. > > Yes. Or said differently, rint() may be implemented in terms of > nearbyint() (+ raising exception where appropriate). Question is whether I am required to raise it when standard say "may raise" Honza > > -- Gaby