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 B0BE02FF16 for ; Tue, 19 Sep 2000 18:09:42 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.8.7/8.8.7) id SAA05681 for axp-list@listman.redhat.com; Tue, 19 Sep 2000 18:09:42 -0400 Received: from newton.math.purdue.edu (root@newton.math.purdue.edu [128.210.3.6]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id SAA05677 for ; Tue, 19 Sep 2000 18:09:42 -0400 Received: from polya.math.purdue.edu (lucier@polya.math.purdue.edu [128.210.3.194]) by newton.math.purdue.edu (8.10.1/8.10.1/PURDUE_MATH-4.0) with ESMTP id e8JM9ai20366 for ; Tue, 19 Sep 2000 17:09:37 -0500 (EST) Received: (from lucier@localhost) by polya.math.purdue.edu (8.9.3/8.9.3/PURDUE_MATH-3.2) id RAA12391 for axp-list@redhat.com; Tue, 19 Sep 2000 17:09:35 -0500 (EST) From: Brad Lucier Message-Id: <200009192209.RAA12391@polya.math.purdue.edu> Subject: Re: Alpha/Linux FP denormal processing To: axp-list@redhat.com Date: Tue, 19 Sep 2000 17:09:35 -0500 (EST) In-Reply-To: <200009192109.PAA28958@ellpspace.math.ualberta.ca> from "Michal Jaegermann" at Sep 19, 2000 03:09:14 PM X-Mailer: ELM [version 2.5 PL0] MIME-Version: 1.0 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 > > Brad Lucier wrote: > > > > Yes, this is with -mieee. It went to e-324 with x *= 0.5, but > > only to e-308 with x /= 2.0. > > > > Brad > > > > > > > > Kan i presume u used -mieee ??? > > > Ok, here is a test source I am using now: > > #include > > int main() > { > double x = 1.0; > for (x = 1.0; x != 0.0; x /= 2) > printf("%e\n", x); > return 0; > } > > Compiled with gcc version 2.95.2 19991024 (release) and the following > flags '-Wall -mieee -O2' it is producing the following tail in its > output: > > 2.529616e-321 > 1.264808e-321 > 6.324040e-322 > 3.162020e-322 > 1.581010e-322 > 7.905050e-323 > 3.952525e-323 > 1.976263e-323 > 9.881313e-324 > 4.940656e-324 > > This time a machine is > cpu : Alpha > cpu model : EV56 > system type : Ruffian > > and its kernel is 2.2.17 with the following patches, in this moment, > applied and in this order (could be important if you want avoid > too many troubles): > -O2 converts the divide by 2 to a multiplication by 0.5, and so avoids the error. Brad Lucier