Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "Wes Bauske" <wsb@paralleldata.com>
To: axp-list@redhat.com
Subject: Re: g77 problems
Date: Thu, 03 Sep 1998 06:23:55 +0000	[thread overview]
Message-ID: <35EE35FB.2DD93032@paralleldata.com> (raw)
In-Reply-To: 35ED659F.10AAA5AF@treblig.org

David Alan Gilbert wrote:
> 
> Wes Bauske wrote:
> 
> > Alpha's are VERY strict with respect to arguments of FP operations.
> > You cannot use un-normalized numbers! One normally gets those
> > by indexing in an array incorrectly or used an un-initialized
> > stack variable. If you run your code under gdb, and look at the
> > arguments to the FP operation, you most likely will find a
> > non-FP number. Now, if you REALLY intended to do this, you can
> > use the flag '-mieee', I believe, to have SW trap and handle these
> > sorts of problems. No guarantees that it will work but others
> > have reported success with it.
> 
> What happens with numbers which are so small/large that they can not
> be normalised (sorry I can't remember the term); as far as I understood
> they were valid numbers, but perhaps I'm confused.
> 

Underflows are set to zero according to the architecture
stuff I read. Don't know about overflows. I have an
algorithm that can underflow and is working correctly but
haven't tried it on an Alpha so I can't say it really works
from experience. You'd still have valid inputs to the FP
op though. Most problems I see in code are trying to feed
junk into a FP op.

If a number cannot be represented normalized, you're in
trouble because IEEE FP format has an implied 1 bit in the
mantissa. I use 8 byte floats if I need a larger range of
numbers. Most stuff I do works with 4 byte floats though.
(Digital signal processing)


Wes


  reply	other threads:[~1998-09-03  6:22 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-09-01 10:56 g77 problems Dr P. Caleb Dhanasekaran
1998-09-02  1:48 ` Michal Jaegermann
1998-09-02  4:23 ` Wes Bauske
1998-09-02 15:34   ` David Alan Gilbert
1998-09-03  6:23     ` Wes Bauske [this message]
1998-09-04  0:41       ` Richard Henderson
1998-09-05 19:57         ` Wes Bauske
1998-09-05 20:50           ` Richard Henderson
1998-09-06 20:22             ` Dave Gilbert
1998-09-06 21:05               ` Wes Bauske
1998-09-06 22:41               ` Richard Henderson
1998-09-06 20:28             ` Richard Hadsell
1998-09-06 20:57               ` Wes Bauske
1998-09-23 15:28 ` RedHat5.1 on UX4 Motherboard Dr P. Caleb Dhanasekaran
1998-09-23 17:00   ` furio ercolessi
1998-09-23 17:00   ` Nicholas Sallembian
1998-09-23 17:02   ` Adrian Gartland
1998-09-24 10:01   ` Armin Ollig
1998-09-24 17:16     ` Dr P. Caleb Dhanasekaran
  -- strict thread matches above, loose matches on Subject: below --
1998-09-02  1:27 g77 problems Greg Lindahl
1998-09-03 21:08 Greg Lindahl
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox