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 20:01:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-04!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Falk Hueffner" Newsgroups: comp.os.linux.alpha Subject: Re: floating point problem Date: Fri, 20 Jun 2003 9:53:00 GMT Organization: Posted via Supernews, http://www.supernews.com Message-ID: X-Newsreader: EleBBS/W32 v0.10.rc1 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.os.linux.alpha:7787 (CHARSET: PC-8) (PATH: 263/950 236/150 261/38 140/1 106/2000 123/500 3613/1275 134/10) From: Falk Hueffner 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). -- Falk --- BBBS/NT v4.01 Flag-5 * Origin: TCOB1: A slice of life on your plate (2:263/950) -- This message posted from Shurato's Heavenly Sphere Telnet BBS telnet://shurato.darktech.org for abuse issues, please contact me at shurato@shurato.darktech.org Shurato: Admin of SHS.