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

2007-10-27 Thread Kamaraju S Kusumanchi
Craig Prescott wrote: > Here's how my old EV45 runs your test code with > math_emu loaded: > > imladris:~# ./floortest > DBL_MANT_DIG = 53 > 9007199254740991.00 9007199254740991.00 > > And here is without: > > imladris:~# rmmod math_emu > imladris:~# ./floortest > DBL_MANT_DIG = 53 > 90

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

2007-10-26 Thread Craig Prescott
Here's how my old EV45 runs your test code with math_emu loaded: imladris:~# ./floortest DBL_MANT_DIG = 53 9007199254740991.00 9007199254740991.00 And here is without: imladris:~# rmmod math_emu imladris:~# ./floortest DBL_MANT_DIG = 53 9007199254740991.00 0.00 floortest: floort

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

2007-10-09 Thread Alexander Kotelnikov
> On Tue, 9 Oct 2007 17:50:57 -0400 > "LS" == Lennart Sorensen <[EMAIL PROTECTED]> wrote: LS> >> Do not know anything about MATH_EMU, but I have >> CONFIG_MATHEMU=m >> in my kernel's .config and the test runs the same way with and without >> math-emu module. LS> LS> So math_emu makes no d

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

2007-10-09 Thread Lennart Sorensen
On Tue, Oct 09, 2007 at 10:01:02PM +0400, Alexander Kotelnikov wrote: > 21:50 pts/0 [EMAIL PROTECTED]:~ 3> dpkg -l libc6.1 > Desired=Unknown/Install/Remove/Purge/Hold > | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed > |/ Err?=(none)/Hold/Reinst-required/X=both-problems (S

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

2007-10-09 Thread Alexander Kotelnikov
> On Tue, 9 Oct 2007 13:07:01 -0400 > "LS" == Lennart Sorensen <[EMAIL PROTECTED]> wrote: LS> >> 10:14 pts/10 [EMAIL PROTECTED]:/tmp 7> ./dblc >> DBL_MANT_DIG = 53 >> 9007199254740991.00 9007199254740991.00 >> 10:14 pts/10 [EMAIL PROTECTED]:/tmp 8> uname -a >> Linux vinci 2.6.23-r

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

2007-10-09 Thread Lennart Sorensen
On Sat, Oct 06, 2007 at 10:15:28AM +0400, Alexander Kotelnikov wrote: > Hi. > > 0:14 pts/10 [EMAIL PROTECTED]:/tmp 5> cat dblc.c > #include > #include > #include > #include > > int main() { > double x; > > printf("%s%d\n", "DBL_MANT_DIG = ", DBL_MANT_DIG); > x = ldexp (1.0, DBL_MANT_D

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

2007-10-09 Thread Alexander Kotelnikov
What about DBL_MANT_DIG-1 instead of DBL_MANT_DIG? > On Sat, 06 Oct 2007 21:33:41 +1300 > "MC" == Michael Cree <[EMAIL PROTECTED]> wrote: MC> MC> Alexander Kotelnikov wrote: >> DBL_MANT_DIG = 53 >> 9007199254740991.00 9007199254740991.00 >> 10:14 pts/10 [EMAIL PROTECTED]:/tmp 8> u

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

2007-10-06 Thread Michael Cree
Alexander Kotelnikov wrote: DBL_MANT_DIG = 53 9007199254740991.00 9007199254740991.00 10:14 pts/10 [EMAIL PROTECTED]:/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 Interesting. On my XP1000 (ev67), self compiled kernel 2.6

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

2007-10-05 Thread Alexander Kotelnikov
Hi. 0:14 pts/10 [EMAIL PROTECTED]:/tmp 5> cat dblc.c #include #include #include #include int main() { double x; printf("%s%d\n", "DBL_MANT_DIG = ", DBL_MANT_DIG); x = ldexp (1.0, DBL_MANT_DIG) - 1.0; printf("%lf %lf\n", x, floor(x)); assert(x == floor(x));/* does not seem to w

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

2007-10-05 Thread Kamaraju S Kusumanchi
I have filed this as http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=442568 . But there is no response from the maintainer even after 20 days. I don't have access to an alpha machine to look more into the problem. This bug makes guile-1.8 FTBFS on alpha. So it would be great if someone can take a