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 6B6192FFD3 for ; Tue, 19 Sep 2000 18:41:13 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.8.7/8.8.7) id SAA08035 for axp-list@listman.redhat.com; Tue, 19 Sep 2000 18:41:13 -0400 Received: from voicenet.com (mail11.voicenet.com [207.103.0.37]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id SAA08031 for ; Tue, 19 Sep 2000 18:41:12 -0400 Received: (qmail 5526 invoked from network); 19 Sep 2000 22:41:00 -0000 Received: from dialpool1707.voicenet.com (HELO voicenet.com) (209.71.57.7) by mail11.voicenet.com with SMTP; 19 Sep 2000 22:41:00 -0000 Message-ID: <39C7EBA3.12629498@voicenet.com> Date: Tue, 19 Sep 2000 17:41:39 -0500 From: Uncle George Organization: GatWorks X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.14-6.0 alpha) X-Accept-Language: en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: Alpha/Linux FP denormal processing References: <200009192148.QAA12363@polya.math.purdue.edu> 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 I suppose it wouldn't be so inverse friendly, if it didn't know what the constant would be ? /gat Brad Lucier wrote: > > > > 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 ??? > > Yes, -O2 makes a difference: > > popov-289% cat > denormtest.c > #include > > int main() > { > double x = 1.0; > for (x = 1.0; x != 0.0; x /= 2) > printf("%e\n", x); > return 0; > } > popov-290% gcc -Wall -mieee -O2 -o denormtest denormtest.c > popov-291% ./denormtest | tail > 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 > popov-292% gcc -Wall -mieee -o denormtest denormtest.c > popov-293% ./denormtest | tail > 1.139238e-305 > 5.696189e-306 > 2.848095e-306 > 1.424047e-306 > 7.120236e-307 > 3.560118e-307 > 1.780059e-307 > 8.900295e-308 > 4.450148e-308 > 2.225074e-308 > popov-294% gcc -v > Reading specs from /export/u10/gcc-2.95.1/lib/gcc-lib/alphaev6-unknown-linux-gnu/2.95.1/specs > gcc version 2.95.1 19990816 (release) > popov-295% uname -a > Linux popov.math.purdue.edu 2.2.17 #2 SMP Sat Sep 9 15:42:16 EST 2000 alpha unknown > > With -O2, gcc converts the divide by 2.0 to multiplication by 0.5; > this gets rid of the problem :-). > > Brad > > _______________________________________________ > Axp-list mailing list > Axp-list@redhat.com > https://listman.redhat.com/mailman/listinfo/axp-list