From: Rigo Schultz <schultz@eva.mpg.de>
Subject: Re: floating point problem
Date: Fri, 20 Jun 2003 10:25:42 +0200 [thread overview]
Message-ID: <bcuge7$n70cc$1@fu-berlin.de> (raw)
In-Reply-To: <87r85prxq4.fsf@student.uni-tuebingen.de>
Falk Hueffner wrote:
> Rigo Schultz <schultz@eva.mpg.de> writes:
>
>
>>-mieee works quite good. but i get wrong results.
>>
>> check = 5.877472e-39 / 2.0;
>>
>>on x86:>Check: 2.938736e-39
>>on alpha:>Check: 5.562685e-309
>
>
> That's an underflow. On Alpha, FLT_MIN is 1.175494e-38, and DBL_MIN
> 2.225074e-308. So you should probably use double.
>
> Note also that -mieee will incur a noticeable slowdown on models prior
> to EV6 (and a horrendous slowdown if denormals actually occur, since
> the kernel will emulate them).
>
Thank you for your quick answer.
It's quiet sad thought alpha FPU is much better than x86 stuff.
next prev parent reply other threads:[~2003-06-20 8:25 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-19 16:32 floating point problem Rigo Schultz
2003-06-19 16:39 ` Falk Hueffner
2003-06-19 18:42 ` Robert M. Riches Jr
2003-06-20 7:36 ` Rigo Schultz
2003-06-20 7:53 ` Falk Hueffner
2003-06-20 8:25 ` Rigo Schultz [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-06-19 18:32 Rigo Schultz
2003-06-19 18:32 Rigo Schultz
2003-06-19 18:39 Falk Hueffner
2003-06-19 18:39 Falk Hueffner
2003-06-19 18:42 Robert M. Riches Jr
2003-06-19 18:42 Robert M. Riches Jr
2003-06-20 9:36 Rigo Schultz
2003-06-20 9:53 Falk Hueffner
2003-06-20 10:25 Rigo Schultz
2003-06-20 10:25 Rigo Schultz
2003-06-21 9:31 Falk Hueffner
2003-06-21 9:31 Rigo Schultz
2003-06-23 7:00 Falk Hueffner
2003-06-23 7:00 Rigo Schultz
2003-06-24 3:23 Falk Hueffner
2003-06-24 3:23 Rigo Schultz
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