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 45B3A2F3D9 for ; Fri, 19 Jan 2001 17:32:10 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f0JMWBu07228 for axp-list@listman.redhat.com; Fri, 19 Jan 2001 17:32:11 -0500 Received: from paralleldata.com (smtp.paralleldata.com [38.153.145.2]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f0JMW0v07193 for ; Fri, 19 Jan 2001 17:32:10 -0500 Received: by paralleldata.com from localhost (router,SLMail V2.5); Thu, 18 Jan 2001 16:32:55 -0600 Received: by paralleldata.com from paralleldata.com (65.3.53.39::mail daemon; unverified,SLMail V2.5); Thu, 18 Jan 2001 16:32:54 -0600 Message-ID: <3A68C783.F48144E8@paralleldata.com> Date: Fri, 19 Jan 2001 17:02:27 -0600 From: "W Bauske" Organization: PDS Inc. X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.5-15 i686) X-Accept-Language: en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: RH 7.0 notes References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 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. > Just a comment. I wouldn't cast the numbers that way. Does it give the correct answer with sqrt((double)8388609*(double)8388609) ? 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? Wes