From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2067 invoked by alias); 19 Oct 2002 17:54:58 -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 2050 invoked from network); 19 Oct 2002 17:54:57 -0000 Received: from unknown (HELO moshier.moshier.net) (24.61.24.32) by sources.redhat.com with SMTP; 19 Oct 2002 17:54:57 -0000 Received: from www.moshier.net (moshier.ne.client2.attbi.com [24.61.24.32]) by moshier.moshier.net (8.11.6/8.11.6/SuSE Linux 0.5) with ESMTP id g9JHstq01668; Sat, 19 Oct 2002 13:54:55 -0400 Date: Sat, 19 Oct 2002 15:47:00 -0000 From: Stephen L Moshier To: Richard Henderson cc: gcc@gcc.gnu.org, Subject: Re: real_to_decimal rounds incorrectly In-Reply-To: <20021018235945.GD4964@redhat.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-10/txt/msg01200.txt.bz2 > I've forward-ported the logic from the previous real.c, and added > some commentary so that the next person forced to maintain this > code won't have to spend quite so long trying to figure out what's > going on. > > If you have a literature reference to the algorithm being used here, > it would be nice to add a pointer to it. IEEE-specific modifications were taken from the IEEE spec. Other than that, I draw a blank on references. It's just arithmetic. Maybe Brad, the Purdue Profossor, can suggest some reading material. Purdue is a world hotbed of numerical analysis work, by the way. It would be wonderful if you could talk them into mounting a GNU support project. But I'm afraid that mathematicians usually consider this stuff too trivial and uninteresting to spend much time on.