From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 3682 invoked from network); 29 Nov 1998 12:22:55 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 29 Nov 1998 12:22:55 -0000 Received: from mars.neuro.uni-oldenburg.de (mars.neuro.uni-oldenburg.de [134.106.155.67]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id HAA26499 for ; Sun, 29 Nov 1998 07:21:14 -0500 Received: from neuro.uni-oldenburg.de (mars [134.106.155.67]) by mars.neuro.uni-oldenburg.de (8.9.1a/8.9.1) with ESMTP id NAA17224; Sun, 29 Nov 1998 13:15:14 GMT Sender: joe@mars.neuro.uni-oldenburg.de Message-ID: <366148E2.67B1BFDF@neuro.uni-oldenburg.de> Date: Sun, 29 Nov 1998 13:15:14 +0000 From: "Johannes G.D. Hausmann" Organization: Carl von Ossietzky Universitaet Oldenburg X-Mailer: Mozilla 4.5 [en] (X11; I; SunOS 5.5.1 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: Floating point problems References: <36600D4F.3F54BC7E@iis.fhg.de> <9811281602460A.07172@apollo.bcas.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Transfer-Encoding: 7bit Hi again, > >But all your code examples work (at least with gcc 2.7.2.1) > >if compiled with `-mieee'. Also be aware that `%lg' is not > > Thanks, that should do it (I'll test it as soon as I get home). > I did remember that there was something about `ieee', but not > where it did belong. > But using -miee may lead to slower code, at least that's what I understood from several discussions about it on this list. So you probably do not want to do it this way. As I said, 1.0e-310 is a denormal, it is not zero, and further references to it lead to FPEs. It's these things that give me headaches - C. Whaley found one uninitialized array in the superscalar gemm-based BLAS that happened to hold several of these denormals => FPEs. Using -mieee (instead of proper init) solves the problem, too, but the cost is too high. Why do you want to use this number anyway? Jo -- ----------------------------------------- Johannes Hausmann Carl von Ossietzky Universitaet Oldenburg FB Physik -- AG Komplexe Systeme EMail : joe@neuro.uni-oldenburg.de -----------------------------------------