A bug in mod operations of 64bit integer (fwd)

Date view Thread view Subject view Author view

From: Godmar Back (gback@cs.utah.edu)
Date: Thu Dec 03 1998 - 20:42:42 EST


 This guy is still open.
I think I checked some #if 0 code in the corresponding function in
soft.c; anybody who wants to debug that one should start from there.
I looked at it, didn't find an explanation, scratched my head and
moved on.

        - Godmar

Forwarded message:
> From kaffe@rufus.w3.org Thu Nov 5 20:42:47 1998
> X-UIDL: 75325a3320f2eca55069fc83b8f734f6
> Resent-From: kaffe@rufus.w3.org
> Resent-Date: Thu, 5 Nov 1998 22:41:20 -0500
> Resent-Message-Id: <199811060341.WAA22185@rufus.w3.org>
> X-Authentication-Warning: rufus.w3.org: majordom set sender to owner-kaffe@rufus.w3.org using -f
> From: Archie Cobbs <archie@whistle.com>
> Message-Id: <199811060341.TAA20287@bubba.whistle.com>
> Subject: A bug in mod operations of 64bit integer (fwd)
> To: kaffe@rufus.w3.org
> Date: Thu, 5 Nov 1998 19:41:04 -0800 (PST)
> X-Mailer: ELM [version 2.4ME+ PL38 (25)]
> MIME-Version: 1.0
> Content-Type: text/plain; charset=US-ASCII
> Content-Transfer-Encoding: 7bit
> Sender: owner-kaffe@rufus.w3.org
> Precedence: bulk
> Reply-To: kaffe@rufus.w3.org
> Errors-To: kaffe-error@rufus.w3.org
> X-loop: kaffe@rufus.w3.org
> X-mailing-list: kaffe@rufus.w3.org
> X-Status:
>
> It appears kaffe suffers from this same bug.. can someone
> who knows the JIT stuff confirm/deny?
>
> Thanks,
> -Archie
>
> $ kaffe inttest
> 476
> 1123
> -53
> -123
> -476
> -1123
>
>
> ----- Forwarded message from SHUDOH Kazuyuki -----
>
> >From owner-freebsd-java@FreeBSD.ORG Thu Nov 5 07:03:31 1998
> Message-Id: <199811051420.XAA06107@cafe.muraoka.info.waseda.ac.jp>
> To: freebsd-java@FreeBSD.ORG
> Subject: A bug in mod operations of 64bit integer
> Date: Thu, 05 Nov 1998 23:20:08 +0900
> From: SHUDOH Kazuyuki <shudoh@muraoka.info.waseda.ac.jp>
> Sender: owner-freebsd-java@FreeBSD.ORG
> X-Loop: FreeBSD.org
>
> Did anyone notice a behavior which differs from JDK for SunOS 5?
> This maybe a bug of FreeBSD port of JDK.
>
> =====
> class inttest {
> static public void main(String s[]) {
> long a, b;
>
> a = -1111123;
> b = -1123;
>
> System.out.println(a % b);
> System.out.println(b % a);
>
> a = 11123;
> b = -123;
>
> System.out.println(a % b);
> System.out.println(b % a);
>
> a = -1111123;
> b = 1123;
>
> System.out.println(a % b);
> System.out.println(b % a);
> }
> }
> =====
>
> We'll see on SunOS 5 and Linux:
> -476
> -1123
> 53
> -123
> -476
> 1123
>
> But on FreeBSD and JDK 1.1.6 V98-9-23:
> 476
> 1123
> -53
> -123
> -476
> -1123
>
> Kazuyuki SHUDO Happy Hacking!
> Muraoka Lab., Grad. School of Sci. & Eng., Waseda Univ.
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-java" in the body of the message
>
> ----- End of forwarded message from SHUDOH Kazuyuki -----
> ___________________________________________________________________________
> Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com
>


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:57:05 EDT