[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: glibc: floor() is giving incorrect results on alpha architecture



What about DBL_MANT_DIG-1 instead of DBL_MANT_DIG?

>>>>> On Sat, 06 Oct 2007 21:33:41 +1300
>>>>> "MC" == Michael Cree <mcree@orcon.net.nz> wrote:
MC> 
MC> Alexander Kotelnikov wrote:
>> DBL_MANT_DIG = 53
>> 9007199254740991.000000 9007199254740991.000000
>> 10:14 pts/10 sacha@vinci:/tmp 8> uname -a
>> Linux vinci 2.6.23-rc8-rt2x00-gc31d1777-dirty #1 Wed Oct 3 11:44:23 MSD 2007 alpha GNU/Linux
MC> 
MC> Interesting.  On my XP1000 (ev67), self compiled kernel 2.6.22.3, and
MC> running debian testing, I get:
MC> 
MC> DBL_MANT_DIG = 53
MC> 9007199254740991.000000 9007199254740990.000000
MC> a.out: double_comparison.c:12: main: Assertion `x == floor(x)' failed.
MC> Aborted
MC> 
MC> Michael.
MC> 
-- 
Alexander Kotelnikov
Saint-Petersburg, Russia



Reply to: