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

Date view Thread view Subject view Author view

From: Archie Cobbs (archie@whistle.com)
Date: Sun Dec 06 1998 - 18:45:27 EST


Archie Cobbs writes:
> Alexandre Oliva writes:
> > > This guy is still open.
> >
> > You mean, it fails only in FreeBSD, right? Because on Solaris and
> > Linux I get the same results as JDK.
>
> I think this may be a bug in FreeBSD that has recently been fixed.
> The FreeBSD version of JDK had the same problem and the fix was
> a change in libc, I believe. I'll try to find out more specifics.

I think this is the relevant checkin.. not 100% positive though.
Here's the FreeBSD JDK version:

  http://www.freebsd.org/java/#ch-6

> RCS file: /home/ncvs/src/lib/libc/quad/moddi3.c,v
> Working file: moddi3.c
  ...
> RELENG_2_2_8_RELEASE: 1.1.1.1
> RELENG_3_0_0_RELEASE: 1.1.1.1
> RELENG_2_2: 1.1.1.1.0.8
  ...
> ----------------------------
> revision 1.2
> date: 1998/11/30 20:25:37; author: nate; state: Exp; lines: +1 -1
> - Fix modulo bug that was masked by the correct code in libgcc.a which is
> used in almost all programs unless a shared library specifically
> ignores libgcc.a.
> ----------------------------
> revision 1.1
> date: 1994/05/27 04:57:20; author: rgrimes; state: Exp;
> branches: 1.1.1;
> Initial revision
> ----------------------------
> revision 1.1.1.1
> date: 1994/05/27 04:57:21; author: rgrimes; state: Exp; lines: +0 -0
> branches: 1.1.1.1.8;
> BSD 4.4 Lite Lib Sources
> ----------------------------
> revision 1.1.1.1.8.1
> date: 1998/11/30 20:26:12; author: nate; state: Exp; lines: +1 -1
> MFC: Fix modulo bug.
> =============================================================================

-Archie

___________________________________________________________________________
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:06 EDT