Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Quezcal <quezcal@mud.uni-paderborn.de>
Subject: Doubles broken
Date: Tue, 6 Jan 1998 21:28:40 +0100 (MET)	[thread overview]
Message-ID: <de2023e2f380b0b1b99ad0faf5d3300f.axp-list@archive.invalid> (raw)

I am running an PC164LX 533Mhz Samsung Cpu Redhat 5.0

If I use doubles for floating point calculations i get a lot of
floating point exceptions, e.g. with this:

main()
{
double a,b,c;

a = -1;
b = 1e-310;
c=a*b;
printf("%lf\n",c);
}

Anything that uses a double from about e-308 to e-323 gives a
float.exception. Smaller and larger exponents just give -0 as would be
right. Any help? This is rather annoying for ray tracing.

If I use float instead it works. Could anybody veryfy this please?

I tried gcc and egcs-1.0, same effect. Help :)!

Email in reply would be most helpfull, thanks,

Olaf

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

             reply	other threads:[~1998-01-06 20:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-06 20:28 Quezcal [this message]
     [not found] <199801062028.VAA28940@xyllomer.uni-paderborn.de>
1998-01-06 22:10 ` Doubles broken Quezcal
  -- strict thread matches above, loose matches on Subject: below --
1998-01-07 10:04 Stefan Schroepfer
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