From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id D12E32F318 for ; Fri, 26 Jan 2001 14:37:58 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f0QJbj822467 for axp-list@listman.redhat.com; Fri, 26 Jan 2001 14:37:45 -0500 Received: from relay1.nce.smtp.psi.net (relay1.nce.smtp.psi.net [38.9.152.2]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f0QJbjd22463 for ; Fri, 26 Jan 2001 14:37:45 -0500 Received: from [198.138.94.6] (helo=smtp.txc.com) by relay1.nce.smtp.psi.net with smtp (Exim 3.13 #3) id 14MEgz-00060l-00 for axp-list@redhat.com; Fri, 26 Jan 2001 14:37:53 -0500 Received: from jade.txc.com by smtp.txc.com (4.1/SMI-4.1) id AA25651; Fri, 26 Jan 01 14:30:33 EST Received: from neptune.txc.com by jade.txc.com (SMI-8.6/SMI-SVR4) id OAA04420; Fri, 26 Jan 2001 14:37:06 -0500 Received: (from igor@localhost) by neptune.txc.com (8.9.3+Sun/8.9.1) id OAA03973 for axp-list@redhat.com; Fri, 26 Jan 2001 14:37:04 -0500 (EST) Date: Fri, 26 Jan 2001 14:37:04 -0500 From: Igor Schein To: axp-list@redhat.com Subject: Re: RH 7.0 notes Message-Id: <20010126143704.D26188@neptune.txc.com> References: <3A68C783.F48144E8@paralleldata.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3A68C783.F48144E8@paralleldata.com>; from wsb@paralleldata.com on Fri, Jan 19, 2001 at 05:02:27PM -0600 X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors On Fri, Jan 19, 2001 at 05:02:27PM -0600, W Bauske wrote: > Rich Payne wrote: > > > > On Thu, 18 Jan 2001, Igor Schein wrote: > > > 4) RH-7.0 came with glibc-2.1.x, which has a ridiciluous math library > > > bug, where sqrt((double)(8388609*8388609)) is NOT equal to 8388609. > > > glibc-2.2 fixes this issue. Imagine potential consequences of this > > > bug in production environment. > > > > There's a glibc update to 7.0. If that doesn't fix it, be sure to report > > it. Yes, glibc-2.2 does fix it, as I mention above. > > > > Just a comment. I wouldn't cast the numbers that way. Does it give > the correct answer with sqrt((double)8388609*(double)8388609) ? No, behavior was the same with your cast or mine. > > Actually, just casting one of the numbers or directly using a double > constant should make it work. It looks like if that multiply is done > in single precision or as an integer, there is insufficient precision > to correctly convert it back. > > Exactly how wrong is the result as coded? If that multiply is done > as integer, it should be really wrong I think. Or, is this not the > real code fragment you're having trouble with? The answer was 8388610, off by one compared to the original. Igor