From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31414 invoked by alias); 8 Apr 2002 16:44:51 -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 31406 invoked from network); 8 Apr 2002 16:44:50 -0000 Received: from unknown (HELO gash2.peakpeak.com) (207.174.178.17) by sources.redhat.com with SMTP; 8 Apr 2002 16:44:50 -0000 Received: from creche.cygnus.com (ta0196.peakpeak.com [204.144.244.196]) by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id KAA23346; Mon, 8 Apr 2002 10:44:46 -0600 Received: (from tromey@localhost) by creche.cygnus.com (8.9.3/8.9.3) id KAA07661; Mon, 8 Apr 2002 10:46:58 -0600 To: Stephen L Moshier Cc: Zack Weinberg , Subject: Re: Java floating-point mess References: From: Tom Tromey Reply-To: tromey@redhat.com X-Attribution: Tom X-Zippy: When I met th'POPE back in '58, I scrubbed him with a MILD SOAP or DETERGENT for 15 minutes. He seemed to enjoy it.. Date: Mon, 08 Apr 2002 10:20:00 -0000 In-Reply-To: Stephen L Moshier's message of "Fri, 5 Apr 2002 09:54:28 -0500 (EST)" Message-ID: <873cy6jfy5.fsf@creche.redhat.com> X-SW-Source: 2002-04/txt/msg00283.txt.bz2 >>>>> "Stephen" == Stephen L Moshier writes: Stephen> From the IEEE fanatics though, I got the impression that Java Stephen> was supposed to work the same on all computers so you would Stephen> have to provide a run-time emulator if your computer was not Stephen> IEEE. Is that the specification or was that just political Stephen> propaganda? If your class or method is strictfp then the results of your computation are tightly specified. Otherwise, in most contexts, there is a bit of leeway. I think the rule is 1 bit of difference is acceptable, but you'd have to check the spec to make sure. Earlier versions of the spec didn't have strictfp; that was added to allow code to be faster (but less accurate) on x86 (and presumably others). Anyway, yes, it is the specification and not just propaganda. Tom