From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30971 invoked by alias); 2 Jul 2002 14:46:02 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 30873 invoked from network); 2 Jul 2002 14:45:48 -0000 Received: from unknown (HELO junk.nocrew.org) (213.242.147.30) by sources.redhat.com with SMTP; 2 Jul 2002 14:45:48 -0000 Received: from lars by junk.nocrew.org with local (Exim 3.31 #1 (Debian)) for gcc@gcc.gnu.org id 17POuZ-00048V-00; Tue, 02 Jul 2002 16:45:47 +0200 To: gcc@gcc.gnu.org Subject: Re: Comparing doubles References: <8565zziaat.fsf@junk.nocrew.org> <85sn32hckl.fsf@junk.nocrew.org> From: Lars Brinkhoff Organization: nocrew Date: Tue, 02 Jul 2002 07:48:00 -0000 In-Reply-To: <85sn32hckl.fsf@junk.nocrew.org> Message-ID: <85u1nifasl.fsf@junk.nocrew.org> User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-07/txt/msg00066.txt.bz2 Lars Brinkhoff writes: > > Lars Brinkhoff writes: > > > would it be acceptable for a GCC back end to compare two doubles > > > by subtracting them, converting the result to float, and then > > > compare the result against zero? > Geoff Keating writes: > > If you define __STDC_IEC_559__, no. > That is now the case. Sorry, NOT the case. -- Lars Brinkhoff http://lars.nocrew.org/ Linux, GCC, PDP-10, Brinkhoff Consulting http://www.brinkhoff.se/ HTTP programming