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

Bug#442568: glibc: floor() is giving incorrect results on alpha architecture



Here's how my old EV45 runs your test code with
math_emu loaded:

imladris:~# ./floortest
DBL_MANT_DIG = 53
9007199254740991.000000 9007199254740991.000000

And here is without:

imladris:~# rmmod math_emu
imladris:~# ./floortest
DBL_MANT_DIG = 53
9007199254740991.000000 0.000000
floortest: floortest.c:12: main: Assertion `x == floor(x)' failed.
Aborted

This machine is not exactly up to date, but:

imladris:~# uname -a
Linux imladris 2.6.18-3-alpha-generic #1 Mon Dec 4 16:04:14 UTC 2006 alpha GNU/Linux

This thread from back in February is probably of interest:

http://lists.debian.org/debian-alpha/2007/02/msg00016.html

At that time, it sounded like MATHEMU was going to end up
being built into alpha kernels at some point, instead of
being a module.  I guess this would solve the problem you
ran into?

Cheers,
Craig




Reply to: