From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11412 invoked by alias); 7 Nov 2002 13:27:21 -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 11404 invoked from network); 7 Nov 2002 13:27:20 -0000 Received: from unknown (HELO soliton.integrable-solutions.net) (193.51.208.204) by sources.redhat.com with SMTP; 7 Nov 2002 13:27:20 -0000 Received: (from gdr@localhost) by soliton.integrable-solutions.net (8.11.6/8.11.6/SuSE Linux 0.5) id gA7DSND06935; Thu, 7 Nov 2002 14:28:23 +0100 To: Andreas Schwab Cc: Jan Hubicka , Richard Henderson , gcc-patches@gcc.gnu.org, aj@suse.de 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> From: Gabriel Dos Reis In-Reply-To: Andreas Schwab's message of "Thu, 07 Nov 2002 14:14:02 +0100" Organization: Integrable Solutions Mime-Version: 1.0 (generated by tm-edit 7.106) Content-Type: text/plain; charset=US-ASCII Date: Thu, 07 Nov 2002 05:27:00 -0000 Message-ID: X-SW-Source: 2002-11/txt/msg00449.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). -- Gaby