From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 2742 invoked from network); 6 Jan 1999 23:42:56 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 6 Jan 1999 23:42:56 -0000 Received: from ellpspace.math.ualberta.ca (michal@ellpspace.math.ualberta.ca [129.128.88.19]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id SAA08725 for ; Wed, 6 Jan 1999 18:23:37 -0500 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.8.8/8.8.8) id QAA27622 for axp-list@redhat.com; Wed, 6 Jan 1999 16:23:21 -0700 From: Michal Jaegermann Message-Id: <199901062323.QAA27622@ellpspace.math.ualberta.ca> Subject: Re: Problem with floating point exceptions To: axp-list@redhat.com Date: Wed, 6 Jan 1999 16:23:21 -0700 (MST) In-Reply-To: <199901062147.QAA22418@mamba.cs.virginia.edu> from "Greg Lindahl" at Jan 6, 99 04:47:09 pm Content-Type: text Greg Lindahl wrote: > > > I get floating > > point exceptions in sections of the code which evaluate exp(-x) for large > > positive values of x. > > FAQ. You need to use the -mieee flag in order to use denormalized > numbers at all. .... > > Note that -mieee will slow down your code by a factor of 2 or more. If you have only underflows and you want them silently converted to zero you may install your private "do-nothing" signal handler for FPE. Note that this act the same way for **all** floating point exceptions and this may be not what you really want. Michal