From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,47f79c0da38c8a0 X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2003-06-20 01:25:44 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!t-online.de!newsfeed.r-kom.de!fu-berlin.de!uni-berlin.de!magellan.eva.mpg.DE!not-for-mail From: Rigo Schultz Newsgroups: comp.os.linux.alpha Subject: Re: floating point problem Date: Fri, 20 Jun 2003 10:25:42 +0200 Message-ID: References: <874r2mkon5.fsf@student.uni-tuebingen.de> <87r85prxq4.fsf@student.uni-tuebingen.de> NNTP-Posting-Host: magellan.eva.mpg.de (194.94.96.194) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: fu-berlin.de 1056097543 24347020 194.94.96.194 (16 812) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 X-Accept-Language: en-us, en In-Reply-To: <87r85prxq4.fsf@student.uni-tuebingen.de> Xref: archiver1.google.com comp.os.linux.alpha:7767 Falk Hueffner wrote: > Rigo Schultz 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.