[kaffe] CVS kaffe (doogie): Replace all negative bitshifts with 32 - value. Fixes jikes compiler

Kaffe CVS cvs-commits at kaffe.org
Sun May 29 23:38:06 PDT 2005


PatchSet 6596 
Date: 2005/05/30 06:27:41
Author: doogie
Branch: HEAD
Tag: (none) 
Log:
Replace all negative bitshifts with 32 - value.  Fixes jikes compiler
warning.

Members: 
	ChangeLog:1.4121->1.4122 
	libraries/javalib/gnu/crypto/exp/Helix.java:1.1->1.2 
	libraries/javalib/gnu/crypto/hash/MD4.java:1.1->1.2 
	libraries/javalib/gnu/crypto/hash/MD5.java:1.1->1.2 
	libraries/javalib/org/metastatic/jessie/pki/provider/MD5.java:1.1->1.2 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4121 kaffe/ChangeLog:1.4122
--- kaffe/ChangeLog:1.4121	Mon May 30 02:21:00 2005
+++ kaffe/ChangeLog	Mon May 30 06:27:41 2005
@@ -1,3 +1,12 @@
+2004-12-24  Adam Heath  <doogie at brainfood.com>
+
+	* libraries/javalib/gnu/crypto/exp/Helix.java,
+	libraries/javalib/gnu/crypto/hash/MD4.java,
+	libraries/javalib/gnu/crypto/hash/MD5.java,
+	libraries/javalib/org/metastatic/jessie/pki/provider/MD5.java:
+	  Replace all negative bitshifts with 32 - value.  Fixes jikes
+	  compiler warning.
+
 2005-05-30  Dalibor Topic  <robilad at kaffe.org>
 
         Resynced with GNU Classpath.
Index: kaffe/libraries/javalib/gnu/crypto/exp/Helix.java
diff -u kaffe/libraries/javalib/gnu/crypto/exp/Helix.java:1.1 kaffe/libraries/javalib/gnu/crypto/exp/Helix.java:1.2
--- kaffe/libraries/javalib/gnu/crypto/exp/Helix.java:1.1	Wed Jul 21 01:41:23 2004
+++ kaffe/libraries/javalib/gnu/crypto/exp/Helix.java	Mon May 30 06:27:40 2005
@@ -1,7 +1,7 @@
 package gnu.crypto.exp;  // -*- Mode: java; c-basic-offset: 3; -*-
 
 // ---------------------------------------------------------------------------
-// $Id: Helix.java,v 1.1 2004/07/21 01:41:23 dalibor Exp $
+// $Id: Helix.java,v 1.2 2005/05/30 06:27:40 doogie Exp $
 //
 // Copyright (C) 2004 Free Software Foundation, Inc.
 //
@@ -442,48 +442,48 @@
          debug("block ("+block+") x0="+x0+" x1="+x1+" p="+p);
       }
       z0 += z3;
-      z3 = z3 << 15 | z3 >>> -15;
+      z3 = z3 << 15 | z3 >>> (32 - 15);
       z1 += z4;
-      z4 = z4 << 25 | z4 >>> -25;
+      z4 = z4 << 25 | z4 >>> (32 - 25);
       z2 ^= z0;
-      z0 = z0 <<  9 | z0 >>>  -9;
+      z0 = z0 <<  9 | z0 >>> (32 - 9);
       z3 ^= z1;
-      z1 = z1 << 10 | z1 >>> -10;
+      z1 = z1 << 10 | z1 >>> (32 - 10);
       z4 += z2;
-      z2 = z2 << 17 | z2 >>> -17;
+      z2 = z2 << 17 | z2 >>> (32 - 17);
 
       z0 ^= z3 + x0;
-      z3 = z3 << 30 | z3 >>> -30;
+      z3 = z3 << 30 | z3 >>> (32 - 30);
       z1 ^= z4;
-      z4 = z4 << 13 | z4 >>> -13;
+      z4 = z4 << 13 | z4 >>> (32 - 13);
       z2 += z0;
-      z0 = z0 << 20 | z0 >>> -20;
+      z0 = z0 << 20 | z0 >>> (32 - 20);
       z3 += z1;
-      z1 = z1 << 11 | z1 >>> -11;
+      z1 = z1 << 11 | z1 >>> (32 - 11);
       z4 ^= z2;
-      z2 = z2 <<  5 | z2 >>>  -5;
+      z2 = z2 <<  5 | z2 >>> (32 - 5);
 
       z0 += z3 ^ p;
-      z3 = z3 << 15 | z3 >>> -15;
+      z3 = z3 << 15 | z3 >>> (32 - 15);
       z1 += z4;
-      z4 = z4 << 25 | z4 >>> -25;
+      z4 = z4 << 25 | z4 >>> (32 - 25);
       z2 ^= z0;
-      z0 = z0 <<  9 | z0 >>>  -9;
+      z0 = z0 <<  9 | z0 >>> (32 - 9);
       z3 ^= z1;
-      z1 = z1 << 10 | z1 >>> -10;
+      z1 = z1 << 10 | z1 >>> (32 - 10);
       z4 += z2;
-      z2 = z2 << 17 | z2 >>> -17;
+      z2 = z2 << 17 | z2 >>> (32 - 17);
 
       z0 ^= z3 + x1;
-      z3 = z3 << 30 | z3 >>> -30;
+      z3 = z3 << 30 | z3 >>> (32 - 30);
       z1 ^= z4;
-      z4 = z4 << 13 | z4 >>> -13;
+      z4 = z4 << 13 | z4 >>> (32 - 13);
       z2 += z0;
-      z0 = z0 << 20 | z0 >>> -20;
+      z0 = z0 << 20 | z0 >>> (32 - 20);
       z3 += z1;
-      z1 = z1 << 11 | z1 >>> -11;
+      z1 = z1 << 11 | z1 >>> (32 - 11);
       z4 ^= z2;
-      z2 = z2 <<  5 | z2 >>>  -5;
+      z2 = z2 <<  5 | z2 >>> (32 - 5);
    }
 
    private int X0() {
Index: kaffe/libraries/javalib/gnu/crypto/hash/MD4.java
diff -u kaffe/libraries/javalib/gnu/crypto/hash/MD4.java:1.1 kaffe/libraries/javalib/gnu/crypto/hash/MD4.java:1.2
--- kaffe/libraries/javalib/gnu/crypto/hash/MD4.java:1.1	Wed Jul 21 01:41:25 2004
+++ kaffe/libraries/javalib/gnu/crypto/hash/MD4.java	Mon May 30 06:27:48 2005
@@ -1,7 +1,7 @@
 package gnu.crypto.hash;
 
 // ----------------------------------------------------------------------------
-// $Id: MD4.java,v 1.1 2004/07/21 01:41:25 dalibor Exp $
+// $Id: MD4.java,v 1.2 2005/05/30 06:27:48 doogie Exp $
 //
 // Copyright (C) 2001, 2002, Free Software Foundation, Inc.
 //
@@ -61,7 +61,7 @@
  *    R. Rivest.</li>
  * </ol>
  *
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
  * @author Casey Marshall (rsdio at metastatic.org)
  */
 public class MD4 extends BaseHash {
@@ -195,103 +195,103 @@
       aa = a;  bb = b;  cc = c;  dd = d;
 
       aa += ((bb & cc) | ((~bb) & dd)) + X0;
-      aa = aa <<  3 | aa >>> -3;
+      aa = aa <<  3 | aa >>> (32 - 3);
       dd += ((aa & bb) | ((~aa) & cc)) + X1;
-      dd = dd <<  7 | dd >>> -7;
+      dd = dd <<  7 | dd >>> (32 - 7);
       cc += ((dd & aa) | ((~dd) & bb)) + X2;
-      cc = cc << 11 | cc >>> -11;
+      cc = cc << 11 | cc >>> (32 - 11);
       bb += ((cc & dd) | ((~cc) & aa)) + X3;
-      bb = bb << 19 | bb >>> -19;
+      bb = bb << 19 | bb >>> (32 - 19);
       aa += ((bb & cc) | ((~bb) & dd)) + X4;
-      aa = aa <<  3 | aa >>> -3;
+      aa = aa <<  3 | aa >>> (32 - 3);
       dd += ((aa & bb) | ((~aa) & cc)) + X5;
-      dd = dd <<  7 | dd >>> -7;
+      dd = dd <<  7 | dd >>> (32 - 7);
       cc += ((dd & aa) | ((~dd) & bb)) + X6;
-      cc = cc << 11 | cc >>> -11;
+      cc = cc << 11 | cc >>> (32 - 11);
       bb += ((cc & dd) | ((~cc) & aa)) + X7;
-      bb = bb << 19 | bb >>> -19;
+      bb = bb << 19 | bb >>> (32 - 19);
       aa += ((bb & cc) | ((~bb) & dd)) + X8;
-      aa = aa <<  3 | aa >>> -3;
+      aa = aa <<  3 | aa >>> (32 - 3);
       dd += ((aa & bb) | ((~aa) & cc)) + X9;
-      dd = dd <<  7 | dd >>> -7;
+      dd = dd <<  7 | dd >>> (32 - 7);
       cc += ((dd & aa) | ((~dd) & bb)) + X10;
-      cc = cc << 11 | cc >>> -11;
+      cc = cc << 11 | cc >>> (32 - 11);
       bb += ((cc & dd) | ((~cc) & aa)) + X11;
-      bb = bb << 19 | bb >>> -19;
+      bb = bb << 19 | bb >>> (32 - 19);
       aa += ((bb & cc) | ((~bb) & dd)) + X12;
-      aa = aa <<  3 | aa >>> -3;
+      aa = aa <<  3 | aa >>> (32 - 3);
       dd += ((aa & bb) | ((~aa) & cc)) + X13;
-      dd = dd <<  7 | dd >>> -7;
+      dd = dd <<  7 | dd >>> (32 - 7);
       cc += ((dd & aa) | ((~dd) & bb)) + X14;
-      cc = cc << 11 | cc >>> -11;
+      cc = cc << 11 | cc >>> (32 - 11);
       bb += ((cc & dd) | ((~cc) & aa)) + X15;
-      bb = bb << 19 | bb >>> -19;
+      bb = bb << 19 | bb >>> (32 - 19);
 
       aa += ((bb & (cc | dd)) | (cc & dd)) + X0 + 0x5a827999;
-      aa = aa <<  3 | aa >>> -3;
+      aa = aa <<  3 | aa >>> (32 - 3);
       dd += ((aa & (bb | cc)) | (bb & cc)) + X4 + 0x5a827999;
-      dd = dd <<  5 | dd >>> -5;
+      dd = dd <<  5 | dd >>> (32 - 5);
       cc += ((dd & (aa | bb)) | (aa & bb)) + X8 + 0x5a827999;
-      cc = cc <<  9 | cc >>> -9;
+      cc = cc <<  9 | cc >>> (32 - 9);
       bb += ((cc & (dd | aa)) | (dd & aa)) + X12 + 0x5a827999;
-      bb = bb << 13 | bb >>> -13;
+      bb = bb << 13 | bb >>> (32 - 13);
       aa += ((bb & (cc | dd)) | (cc & dd)) + X1 + 0x5a827999;
-      aa = aa <<  3 | aa >>> -3;
+      aa = aa <<  3 | aa >>> (32 - 3);
       dd += ((aa & (bb | cc)) | (bb & cc)) + X5 + 0x5a827999;
-      dd = dd <<  5 | dd >>> -5;
+      dd = dd <<  5 | dd >>> (32 - 5);
       cc += ((dd & (aa | bb)) | (aa & bb)) + X9 + 0x5a827999;
-      cc = cc <<  9 | cc >>> -9;
+      cc = cc <<  9 | cc >>> (32 - 9);
       bb += ((cc & (dd | aa)) | (dd & aa)) + X13 + 0x5a827999;
-      bb = bb << 13 | bb >>> -13;
+      bb = bb << 13 | bb >>> (32 - 13);
       aa += ((bb & (cc | dd)) | (cc & dd)) + X2 + 0x5a827999;
-      aa = aa <<  3 | aa >>> -3;
+      aa = aa <<  3 | aa >>> (32 - 3);
       dd += ((aa & (bb | cc)) | (bb & cc)) + X6 + 0x5a827999;
-      dd = dd <<  5 | dd >>> -5;
+      dd = dd <<  5 | dd >>> (32 - 5);
       cc += ((dd & (aa | bb)) | (aa & bb)) + X10 + 0x5a827999;
-      cc = cc <<  9 | cc >>> -9;
+      cc = cc <<  9 | cc >>> (32 - 9);
       bb += ((cc & (dd | aa)) | (dd & aa)) + X14 + 0x5a827999;
-      bb = bb << 13 | bb >>> -13;
+      bb = bb << 13 | bb >>> (32 - 13);
       aa += ((bb & (cc | dd)) | (cc & dd)) + X3 + 0x5a827999;
-      aa = aa <<  3 | aa >>> -3;
+      aa = aa <<  3 | aa >>> (32 - 3);
       dd += ((aa & (bb | cc)) | (bb & cc)) + X7 + 0x5a827999;
-      dd = dd <<  5 | dd >>> -5;
+      dd = dd <<  5 | dd >>> (32 - 5);
       cc += ((dd & (aa | bb)) | (aa & bb)) + X11 + 0x5a827999;
-      cc = cc <<  9 | cc >>> -9;
+      cc = cc <<  9 | cc >>> (32 - 9);
       bb += ((cc & (dd | aa)) | (dd & aa)) + X15 + 0x5a827999;
-      bb = bb << 13 | bb >>> -13;
+      bb = bb << 13 | bb >>> (32 - 13);
 
       aa += (bb ^ cc ^ dd) + X0 + 0x6ed9eba1;
-      aa = aa <<  3 | aa >>> -3;
+      aa = aa <<  3 | aa >>> (32 - 3);
       dd += (aa ^ bb ^ cc) + X8 + 0x6ed9eba1;
-      dd = dd <<  9 | dd >>> -9;
+      dd = dd <<  9 | dd >>> (32 - 9);
       cc += (dd ^ aa ^ bb) + X4 + 0x6ed9eba1;
-      cc = cc << 11 | cc >>> -11;
+      cc = cc << 11 | cc >>> (32 - 11);
       bb += (cc ^ dd ^ aa) + X12 + 0x6ed9eba1;
-      bb = bb << 15 | bb >>> -15;
+      bb = bb << 15 | bb >>> (32 - 15);
       aa += (bb ^ cc ^ dd) + X2 + 0x6ed9eba1;
-      aa = aa <<  3 | aa >>> -3;
+      aa = aa <<  3 | aa >>> (32 - 3);
       dd += (aa ^ bb ^ cc) + X10 + 0x6ed9eba1;
-      dd = dd <<  9 | dd >>> -9;
+      dd = dd <<  9 | dd >>> (32 - 9);
       cc += (dd ^ aa ^ bb) + X6 + 0x6ed9eba1;
-      cc = cc << 11 | cc >>> -11;
+      cc = cc << 11 | cc >>> (32 - 11);
       bb += (cc ^ dd ^ aa) + X14 + 0x6ed9eba1;
-      bb = bb << 15 | bb >>> -15;
+      bb = bb << 15 | bb >>> (32 - 15);
       aa += (bb ^ cc ^ dd) + X1 + 0x6ed9eba1;
-      aa = aa <<  3 | aa >>> -3;
+      aa = aa <<  3 | aa >>> (32 - 3);
       dd += (aa ^ bb ^ cc) + X9 + 0x6ed9eba1;
-      dd = dd <<  9 | dd >>> -9;
+      dd = dd <<  9 | dd >>> (32 - 9);
       cc += (dd ^ aa ^ bb) + X5 + 0x6ed9eba1;
-      cc = cc << 11 | cc >>> -11;
+      cc = cc << 11 | cc >>> (32 - 11);
       bb += (cc ^ dd ^ aa) + X13 + 0x6ed9eba1;
-      bb = bb << 15 | bb >>> -15;
+      bb = bb << 15 | bb >>> (32 - 15);
       aa += (bb ^ cc ^ dd) + X3 + 0x6ed9eba1;
-      aa = aa <<  3 | aa >>> -3;
+      aa = aa <<  3 | aa >>> (32 - 3);
       dd += (aa ^ bb ^ cc) + X11 + 0x6ed9eba1;
-      dd = dd <<  9 | dd >>> -9;
+      dd = dd <<  9 | dd >>> (32 - 9);
       cc += (dd ^ aa ^ bb) + X7 + 0x6ed9eba1;
-      cc = cc << 11 | cc >>> -11;
+      cc = cc << 11 | cc >>> (32 - 11);
       bb += (cc ^ dd ^ aa) + X15 + 0x6ed9eba1;
-      bb = bb << 15 | bb >>> -15;
+      bb = bb << 15 | bb >>> (32 - 15);
 
       a += aa; b += bb; c += cc; d += dd;
    }
Index: kaffe/libraries/javalib/gnu/crypto/hash/MD5.java
diff -u kaffe/libraries/javalib/gnu/crypto/hash/MD5.java:1.1 kaffe/libraries/javalib/gnu/crypto/hash/MD5.java:1.2
--- kaffe/libraries/javalib/gnu/crypto/hash/MD5.java:1.1	Wed Jul 21 01:41:25 2004
+++ kaffe/libraries/javalib/gnu/crypto/hash/MD5.java	Mon May 30 06:27:48 2005
@@ -1,7 +1,7 @@
 package gnu.crypto.hash;
 
 // ----------------------------------------------------------------------------
-// $Id: MD5.java,v 1.1 2004/07/21 01:41:25 dalibor Exp $
+// $Id: MD5.java,v 1.2 2005/05/30 06:27:48 doogie Exp $
 //
 // Copyright (C) 2001, 2002, Free Software Foundation, Inc.
 //
@@ -61,7 +61,7 @@
  *    R. Rivest.</li>
  * </ol>
  *
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
  */
 public class MD5 extends BaseHash {
 
@@ -141,88 +141,88 @@
 
       // hex constants are from md5.c in FSF Gnu Privacy Guard 0.9.2
       // round 1
-      A += ((B & C) | (~B & D)) + X0 + 0xD76AA478;  A = B + (A << 7 | A >>> -7);
-      D += ((A & B) | (~A & C)) + X1 + 0xE8C7B756;  D = A + (D << 12 | D >>> -12);
-      C += ((D & A) | (~D & B)) + X2 + 0x242070DB;  C = D + (C << 17 | C >>> -17);
-      B += ((C & D) | (~C & A)) + X3 + 0xC1BDCEEE;  B = C + (B << 22 | B >>> -22);
-
-      A += ((B & C) | (~B & D)) + X4 + 0xF57C0FAF;  A = B + (A << 7 | A >>> -7);
-      D += ((A & B) | (~A & C)) + X5 + 0x4787C62A;  D = A + (D << 12 | D >>> -12);
-      C += ((D & A) | (~D & B)) + X6 + 0xA8304613;  C = D + (C << 17 | C >>> -17);
-      B += ((C & D) | (~C & A)) + X7 + 0xFD469501;  B = C + (B << 22 | B >>> -22);
-
-      A += ((B & C) | (~B & D)) + X8 + 0x698098D8;  A = B + (A << 7 | A >>> -7);
-      D += ((A & B) | (~A & C)) + X9 + 0x8B44F7AF;  D = A + (D << 12 | D >>> -12);
-      C += ((D & A) | (~D & B)) + X10 + 0xFFFF5BB1; C = D + (C << 17 | C >>> -17);
-      B += ((C & D) | (~C & A)) + X11 + 0x895CD7BE; B = C + (B << 22 | B >>> -22);
-
-      A += ((B & C) | (~B & D)) + X12 + 0x6B901122; A = B + (A << 7 | A >>> -7);
-      D += ((A & B) | (~A & C)) + X13 + 0xFD987193; D = A + (D << 12 | D >>> -12);
-      C += ((D & A) | (~D & B)) + X14 + 0xA679438E; C = D + (C << 17 | C >>> -17);
-      B += ((C & D) | (~C & A)) + X15 + 0x49B40821; B = C + (B << 22 | B >>> -22);
+      A += ((B & C) | (~B & D)) + X0 + 0xD76AA478;  A = B + (A << 7 | A >>> (32 - 7));
+      D += ((A & B) | (~A & C)) + X1 + 0xE8C7B756;  D = A + (D << 12 | D >>> (32 - 12));
+      C += ((D & A) | (~D & B)) + X2 + 0x242070DB;  C = D + (C << 17 | C >>> (32 - 17));
+      B += ((C & D) | (~C & A)) + X3 + 0xC1BDCEEE;  B = C + (B << 22 | B >>> (32 - 22));
+
+      A += ((B & C) | (~B & D)) + X4 + 0xF57C0FAF;  A = B + (A << 7 | A >>> (32 - 7));
+      D += ((A & B) | (~A & C)) + X5 + 0x4787C62A;  D = A + (D << 12 | D >>> (32 - 12));
+      C += ((D & A) | (~D & B)) + X6 + 0xA8304613;  C = D + (C << 17 | C >>> (32 - 17));
+      B += ((C & D) | (~C & A)) + X7 + 0xFD469501;  B = C + (B << 22 | B >>> (32 - 22));
+
+      A += ((B & C) | (~B & D)) + X8 + 0x698098D8;  A = B + (A << 7 | A >>> (32 - 7));
+      D += ((A & B) | (~A & C)) + X9 + 0x8B44F7AF;  D = A + (D << 12 | D >>> (32 - 12));
+      C += ((D & A) | (~D & B)) + X10 + 0xFFFF5BB1; C = D + (C << 17 | C >>> (32 - 17));
+      B += ((C & D) | (~C & A)) + X11 + 0x895CD7BE; B = C + (B << 22 | B >>> (32 - 22));
+
+      A += ((B & C) | (~B & D)) + X12 + 0x6B901122; A = B + (A << 7 | A >>> (32 - 7));
+      D += ((A & B) | (~A & C)) + X13 + 0xFD987193; D = A + (D << 12 | D >>> (32 - 12));
+      C += ((D & A) | (~D & B)) + X14 + 0xA679438E; C = D + (C << 17 | C >>> (32 - 17));
+      B += ((C & D) | (~C & A)) + X15 + 0x49B40821; B = C + (B << 22 | B >>> (32 - 22));
 
       // round 2
-      A += ((B & D) | (C & ~D)) + X1 + 0xF61E2562;  A = B + (A << 5 | A >>> -5);
-      D += ((A & C) | (B & ~C)) + X6 + 0xC040B340;  D = A + (D << 9 | D >>> -9);
-      C += ((D & B) | (A & ~B)) + X11 + 0x265E5A51; C = D + (C << 14 | C >>> -14);
-      B += ((C & A) | (D & ~A)) + X0 + 0xE9B6C7AA;  B = C + (B << 20 | B >>> -20);
-
-      A += ((B & D) | (C & ~D)) + X5 + 0xD62F105D;  A = B + (A << 5 | A >>> -5);
-      D += ((A & C) | (B & ~C)) + X10 + 0x02441453; D = A + (D << 9 | D >>> -9);
-      C += ((D & B) | (A & ~B)) + X15 + 0xD8A1E681; C = D + (C << 14 | C >>> -14);
-      B += ((C & A) | (D & ~A)) + X4 + 0xE7D3FBC8;  B = C + (B << 20 | B >>> -20);
-
-      A += ((B & D) | (C & ~D)) + X9 + 0x21E1CDE6;  A = B + (A << 5 | A >>> -5);
-      D += ((A & C) | (B & ~C)) + X14 + 0xC33707D6; D = A + (D << 9 | D >>> -9);
-      C += ((D & B) | (A & ~B)) + X3 + 0xF4D50D87;  C = D + (C << 14 | C >>> -14);
-      B += ((C & A) | (D & ~A)) + X8 + 0x455A14ED;  B = C + (B << 20 | B >>> -20);
-
-      A += ((B & D) | (C & ~D)) + X13 + 0xA9E3E905; A = B + (A << 5 | A >>> -5);
-      D += ((A & C) | (B & ~C)) + X2 + 0xFCEFA3F8;  D = A + (D << 9 | D >>> -9);
-      C += ((D & B) | (A & ~B)) + X7 + 0x676F02D9;  C = D + (C << 14 | C >>> -14);
-      B += ((C & A) | (D & ~A)) + X12 + 0x8D2A4C8A; B = C + (B << 20 | B >>> -20);
+      A += ((B & D) | (C & ~D)) + X1 + 0xF61E2562;  A = B + (A << 5 | A >>> (32 - 5));
+      D += ((A & C) | (B & ~C)) + X6 + 0xC040B340;  D = A + (D << 9 | D >>> (32 - 9));
+      C += ((D & B) | (A & ~B)) + X11 + 0x265E5A51; C = D + (C << 14 | C >>> (32 - 14));
+      B += ((C & A) | (D & ~A)) + X0 + 0xE9B6C7AA;  B = C + (B << 20 | B >>> (32 - 20));
+
+      A += ((B & D) | (C & ~D)) + X5 + 0xD62F105D;  A = B + (A << 5 | A >>> (32 - 5));
+      D += ((A & C) | (B & ~C)) + X10 + 0x02441453; D = A + (D << 9 | D >>> (32 - 9));
+      C += ((D & B) | (A & ~B)) + X15 + 0xD8A1E681; C = D + (C << 14 | C >>> (32 - 14));
+      B += ((C & A) | (D & ~A)) + X4 + 0xE7D3FBC8;  B = C + (B << 20 | B >>> (32 - 20));
+
+      A += ((B & D) | (C & ~D)) + X9 + 0x21E1CDE6;  A = B + (A << 5 | A >>> (32 - 5));
+      D += ((A & C) | (B & ~C)) + X14 + 0xC33707D6; D = A + (D << 9 | D >>> (32 - 9));
+      C += ((D & B) | (A & ~B)) + X3 + 0xF4D50D87;  C = D + (C << 14 | C >>> (32 - 14));
+      B += ((C & A) | (D & ~A)) + X8 + 0x455A14ED;  B = C + (B << 20 | B >>> (32 - 20));
+
+      A += ((B & D) | (C & ~D)) + X13 + 0xA9E3E905; A = B + (A << 5 | A >>> (32 - 5));
+      D += ((A & C) | (B & ~C)) + X2 + 0xFCEFA3F8;  D = A + (D << 9 | D >>> (32 - 9));
+      C += ((D & B) | (A & ~B)) + X7 + 0x676F02D9;  C = D + (C << 14 | C >>> (32 - 14));
+      B += ((C & A) | (D & ~A)) + X12 + 0x8D2A4C8A; B = C + (B << 20 | B >>> (32 - 20));
 
       // round 3
-      A += (B ^ C ^ D) + X5 + 0xFFFA3942;  A = B + (A << 4 | A >>> -4);
-      D += (A ^ B ^ C) + X8 + 0x8771F681;  D = A + (D << 11 | D >>> -11);
-      C += (D ^ A ^ B) + X11 + 0x6D9D6122; C = D + (C << 16 | C >>> -16);
-      B += (C ^ D ^ A) + X14 + 0xFDE5380C; B = C + (B << 23 | B >>> -23);
-
-      A += (B ^ C ^ D) + X1 + 0xA4BEEA44;  A = B + (A << 4 | A >>> -4);
-      D += (A ^ B ^ C) + X4 + 0x4BDECFA9;  D = A + (D << 11 | D >>> -11);
-      C += (D ^ A ^ B) + X7 + 0xF6BB4B60;  C = D + (C << 16 | C >>> -16);
-      B += (C ^ D ^ A) + X10 + 0xBEBFBC70; B = C + (B << 23 | B >>> -23);
-
-      A += (B ^ C ^ D) + X13 + 0x289B7EC6; A = B + (A << 4 | A >>> -4);
-      D += (A ^ B ^ C) + X0 + 0xEAA127FA;  D = A + (D << 11 | D >>> -11);
-      C += (D ^ A ^ B) + X3 + 0xD4EF3085;  C = D + (C << 16 | C >>> -16);
-      B += (C ^ D ^ A) + X6 + 0x04881D05;  B = C + (B << 23 | B >>> -23);
-
-      A += (B ^ C ^ D) + X9 + 0xD9D4D039;  A = B + (A << 4 | A >>> -4);
-      D += (A ^ B ^ C) + X12 + 0xE6DB99E5; D = A + (D << 11 | D >>> -11);
-      C += (D ^ A ^ B) + X15 + 0x1FA27CF8; C = D + (C << 16 | C >>> -16);
-      B += (C ^ D ^ A) + X2 + 0xC4AC5665;  B = C + (B << 23 | B >>> -23);
+      A += (B ^ C ^ D) + X5 + 0xFFFA3942;  A = B + (A << 4 | A >>> (32 - 4));
+      D += (A ^ B ^ C) + X8 + 0x8771F681;  D = A + (D << 11 | D >>> (32 - 11));
+      C += (D ^ A ^ B) + X11 + 0x6D9D6122; C = D + (C << 16 | C >>> (32 - 16));
+      B += (C ^ D ^ A) + X14 + 0xFDE5380C; B = C + (B << 23 | B >>> (32 - 23));
+
+      A += (B ^ C ^ D) + X1 + 0xA4BEEA44;  A = B + (A << 4 | A >>> (32 - 4));
+      D += (A ^ B ^ C) + X4 + 0x4BDECFA9;  D = A + (D << 11 | D >>> (32 - 11));
+      C += (D ^ A ^ B) + X7 + 0xF6BB4B60;  C = D + (C << 16 | C >>> (32 - 16));
+      B += (C ^ D ^ A) + X10 + 0xBEBFBC70; B = C + (B << 23 | B >>> (32 - 23));
+
+      A += (B ^ C ^ D) + X13 + 0x289B7EC6; A = B + (A << 4 | A >>> (32 - 4));
+      D += (A ^ B ^ C) + X0 + 0xEAA127FA;  D = A + (D << 11 | D >>> (32 - 11));
+      C += (D ^ A ^ B) + X3 + 0xD4EF3085;  C = D + (C << 16 | C >>> (32 - 16));
+      B += (C ^ D ^ A) + X6 + 0x04881D05;  B = C + (B << 23 | B >>> (32 - 23));
+
+      A += (B ^ C ^ D) + X9 + 0xD9D4D039;  A = B + (A << 4 | A >>> (32 - 4));
+      D += (A ^ B ^ C) + X12 + 0xE6DB99E5; D = A + (D << 11 | D >>> (32 - 11));
+      C += (D ^ A ^ B) + X15 + 0x1FA27CF8; C = D + (C << 16 | C >>> (32 - 16));
+      B += (C ^ D ^ A) + X2 + 0xC4AC5665;  B = C + (B << 23 | B >>> (32 - 23));
 
       // round 4
-      A += (C ^ (B | ~D)) + X0 + 0xF4292244;  A = B + (A << 6 | A >>> -6);
-      D += (B ^ (A | ~C)) + X7 + 0x432AFF97;  D = A + (D << 10 | D >>> -10);
-      C += (A ^ (D | ~B)) + X14 + 0xAB9423A7; C = D + (C << 15 | C >>> -15);
-      B += (D ^ (C | ~A)) + X5 + 0xFC93A039;  B = C + (B << 21 | B >>> -21);
-
-      A += (C ^ (B | ~D)) + X12 + 0x655B59C3; A = B + (A << 6 | A >>> -6);
-      D += (B ^ (A | ~C)) + X3 + 0x8F0CCC92;  D = A + (D << 10 | D >>> -10);
-      C += (A ^ (D | ~B)) + X10 + 0xFFEFF47D; C = D + (C << 15 | C >>> -15);
-      B += (D ^ (C | ~A)) + X1 + 0x85845dd1;  B = C + (B << 21 | B >>> -21);
-
-      A += (C ^ (B | ~D)) + X8 + 0x6FA87E4F;  A = B + (A << 6 | A >>> -6);
-      D += (B ^ (A | ~C)) + X15 + 0xFE2CE6E0; D = A + (D << 10 | D >>> -10);
-      C += (A ^ (D | ~B)) + X6 + 0xA3014314;  C = D + (C << 15 | C >>> -15);
-      B += (D ^ (C | ~A)) + X13 + 0x4E0811A1; B = C + (B << 21 | B >>> -21);
-
-      A += (C ^ (B | ~D)) + X4 + 0xF7537E82;  A = B + (A << 6 | A >>> -6);
-      D += (B ^ (A | ~C)) + X11 + 0xBD3AF235; D = A + (D << 10 | D >>> -10);
-      C += (A ^ (D | ~B)) + X2 + 0x2AD7D2BB;  C = D + (C << 15 | C >>> -15);
-      B += (D ^ (C | ~A)) + X9 + 0xEB86D391;  B = C + (B << 21 | B >>> -21);
+      A += (C ^ (B | ~D)) + X0 + 0xF4292244;  A = B + (A << 6 | A >>> (32 - 6));
+      D += (B ^ (A | ~C)) + X7 + 0x432AFF97;  D = A + (D << 10 | D >>> (32 - 10));
+      C += (A ^ (D | ~B)) + X14 + 0xAB9423A7; C = D + (C << 15 | C >>> (32 - 15));
+      B += (D ^ (C | ~A)) + X5 + 0xFC93A039;  B = C + (B << 21 | B >>> (32 - 21));
+
+      A += (C ^ (B | ~D)) + X12 + 0x655B59C3; A = B + (A << 6 | A >>> (32 - 6));
+      D += (B ^ (A | ~C)) + X3 + 0x8F0CCC92;  D = A + (D << 10 | D >>> (32 - 10));
+      C += (A ^ (D | ~B)) + X10 + 0xFFEFF47D; C = D + (C << 15 | C >>> (32 - 15));
+      B += (D ^ (C | ~A)) + X1 + 0x85845dd1;  B = C + (B << 21 | B >>> (32 - 21));
+
+      A += (C ^ (B | ~D)) + X8 + 0x6FA87E4F;  A = B + (A << 6 | A >>> (32 - 6));
+      D += (B ^ (A | ~C)) + X15 + 0xFE2CE6E0; D = A + (D << 10 | D >>> (32 - 10));
+      C += (A ^ (D | ~B)) + X6 + 0xA3014314;  C = D + (C << 15 | C >>> (32 - 15));
+      B += (D ^ (C | ~A)) + X13 + 0x4E0811A1; B = C + (B << 21 | B >>> (32 - 21));
+
+      A += (C ^ (B | ~D)) + X4 + 0xF7537E82;  A = B + (A << 6 | A >>> (32 - 6));
+      D += (B ^ (A | ~C)) + X11 + 0xBD3AF235; D = A + (D << 10 | D >>> (32 - 10));
+      C += (A ^ (D | ~B)) + X2 + 0x2AD7D2BB;  C = D + (C << 15 | C >>> (32 - 15));
+      B += (D ^ (C | ~A)) + X9 + 0xEB86D391;  B = C + (B << 21 | B >>> (32 - 21));
 
       h0 += A;
       h1 += B;
Index: kaffe/libraries/javalib/org/metastatic/jessie/pki/provider/MD5.java
diff -u kaffe/libraries/javalib/org/metastatic/jessie/pki/provider/MD5.java:1.1 kaffe/libraries/javalib/org/metastatic/jessie/pki/provider/MD5.java:1.2
--- kaffe/libraries/javalib/org/metastatic/jessie/pki/provider/MD5.java:1.1	Wed Jul 21 01:42:25 2004
+++ kaffe/libraries/javalib/org/metastatic/jessie/pki/provider/MD5.java	Mon May 30 06:27:48 2005
@@ -236,88 +236,88 @@
     int D = d;
 
     // round 1
-    A += ((B & C) | (~B & D)) + w0 + 0xD76AA478;  A = B + (A << 7 | A >>> -7);
-    D += ((A & B) | (~A & C)) + w1 + 0xE8C7B756;  D = A + (D << 12 | D >>> -12);
-    C += ((D & A) | (~D & B)) + w2 + 0x242070DB;  C = D + (C << 17 | C >>> -17);
-    B += ((C & D) | (~C & A)) + w3 + 0xC1BDCEEE;  B = C + (B << 22 | B >>> -22);
-
-    A += ((B & C) | (~B & D)) + w4 + 0xF57C0FAF;  A = B + (A << 7 | A >>> -7);
-    D += ((A & B) | (~A & C)) + w5 + 0x4787C62A;  D = A + (D << 12 | D >>> -12);
-    C += ((D & A) | (~D & B)) + w6 + 0xA8304613;  C = D + (C << 17 | C >>> -17);
-    B += ((C & D) | (~C & A)) + w7 + 0xFD469501;  B = C + (B << 22 | B >>> -22);
-
-    A += ((B & C) | (~B & D)) + w8 + 0x698098D8;  A = B + (A << 7 | A >>> -7);
-    D += ((A & B) | (~A & C)) + w9 + 0x8B44F7AF;  D = A + (D << 12 | D >>> -12);
-    C += ((D & A) | (~D & B)) + w10 + 0xFFFF5BB1; C = D + (C << 17 | C >>> -17);
-    B += ((C & D) | (~C & A)) + w11 + 0x895CD7BE; B = C + (B << 22 | B >>> -22);
-
-    A += ((B & C) | (~B & D)) + w12 + 0x6B901122; A = B + (A << 7 | A >>> -7);
-    D += ((A & B) | (~A & C)) + w13 + 0xFD987193; D = A + (D << 12 | D >>> -12);
-    C += ((D & A) | (~D & B)) + w14 + 0xA679438E; C = D + (C << 17 | C >>> -17);
-    B += ((C & D) | (~C & A)) + w15 + 0x49B40821; B = C + (B << 22 | B >>> -22);
+    A += ((B & C) | (~B & D)) + w0 + 0xD76AA478;  A = B + (A << 7 | A >>> (32 - 7));
+    D += ((A & B) | (~A & C)) + w1 + 0xE8C7B756;  D = A + (D << 12 | D >>> (32 - 12));
+    C += ((D & A) | (~D & B)) + w2 + 0x242070DB;  C = D + (C << 17 | C >>> (32 - 17));
+    B += ((C & D) | (~C & A)) + w3 + 0xC1BDCEEE;  B = C + (B << 22 | B >>> (32 - 22));
+
+    A += ((B & C) | (~B & D)) + w4 + 0xF57C0FAF;  A = B + (A << 7 | A >>> (32 - 7));
+    D += ((A & B) | (~A & C)) + w5 + 0x4787C62A;  D = A + (D << 12 | D >>> (32 - 12));
+    C += ((D & A) | (~D & B)) + w6 + 0xA8304613;  C = D + (C << 17 | C >>> (32 - 17));
+    B += ((C & D) | (~C & A)) + w7 + 0xFD469501;  B = C + (B << 22 | B >>> (32 - 22));
+
+    A += ((B & C) | (~B & D)) + w8 + 0x698098D8;  A = B + (A << 7 | A >>> (32 - 7));
+    D += ((A & B) | (~A & C)) + w9 + 0x8B44F7AF;  D = A + (D << 12 | D >>> (32 - 12));
+    C += ((D & A) | (~D & B)) + w10 + 0xFFFF5BB1; C = D + (C << 17 | C >>> (32 - 17));
+    B += ((C & D) | (~C & A)) + w11 + 0x895CD7BE; B = C + (B << 22 | B >>> (32 - 22));
+
+    A += ((B & C) | (~B & D)) + w12 + 0x6B901122; A = B + (A << 7 | A >>> (32 - 7));
+    D += ((A & B) | (~A & C)) + w13 + 0xFD987193; D = A + (D << 12 | D >>> (32 - 12));
+    C += ((D & A) | (~D & B)) + w14 + 0xA679438E; C = D + (C << 17 | C >>> (32 - 17));
+    B += ((C & D) | (~C & A)) + w15 + 0x49B40821; B = C + (B << 22 | B >>> (32 - 22));
 
     // round 2
-    A += ((B & D) | (C & ~D)) + w1 + 0xF61E2562;  A = B + (A << 5 | A >>> -5);
-    D += ((A & C) | (B & ~C)) + w6 + 0xC040B340;  D = A + (D << 9 | D >>> -9);
-    C += ((D & B) | (A & ~B)) + w11 + 0x265E5A51; C = D + (C << 14 | C >>> -14);
-    B += ((C & A) | (D & ~A)) + w0 + 0xE9B6C7AA;  B = C + (B << 20 | B >>> -20);
-
-    A += ((B & D) | (C & ~D)) + w5 + 0xD62F105D;  A = B + (A << 5 | A >>> -5);
-    D += ((A & C) | (B & ~C)) + w10 + 0x02441453; D = A + (D << 9 | D >>> -9);
-    C += ((D & B) | (A & ~B)) + w15 + 0xD8A1E681; C = D + (C << 14 | C >>> -14);
-    B += ((C & A) | (D & ~A)) + w4 + 0xE7D3FBC8;  B = C + (B << 20 | B >>> -20);
-
-    A += ((B & D) | (C & ~D)) + w9 + 0x21E1CDE6;  A = B + (A << 5 | A >>> -5);
-    D += ((A & C) | (B & ~C)) + w14 + 0xC33707D6; D = A + (D << 9 | D >>> -9);
-    C += ((D & B) | (A & ~B)) + w3 + 0xF4D50D87;  C = D + (C << 14 | C >>> -14);
-    B += ((C & A) | (D & ~A)) + w8 + 0x455A14ED;  B = C + (B << 20 | B >>> -20);
-
-    A += ((B & D) | (C & ~D)) + w13 + 0xA9E3E905; A = B + (A << 5 | A >>> -5);
-    D += ((A & C) | (B & ~C)) + w2 + 0xFCEFA3F8;  D = A + (D << 9 | D >>> -9);
-    C += ((D & B) | (A & ~B)) + w7 + 0x676F02D9;  C = D + (C << 14 | C >>> -14);
-    B += ((C & A) | (D & ~A)) + w12 + 0x8D2A4C8A; B = C + (B << 20 | B >>> -20);
+    A += ((B & D) | (C & ~D)) + w1 + 0xF61E2562;  A = B + (A << 5 | A >>> (32 - 5));
+    D += ((A & C) | (B & ~C)) + w6 + 0xC040B340;  D = A + (D << 9 | D >>> (32 - 9));
+    C += ((D & B) | (A & ~B)) + w11 + 0x265E5A51; C = D + (C << 14 | C >>> (32 - 14));
+    B += ((C & A) | (D & ~A)) + w0 + 0xE9B6C7AA;  B = C + (B << 20 | B >>> (32 - 20));
+
+    A += ((B & D) | (C & ~D)) + w5 + 0xD62F105D;  A = B + (A << 5 | A >>> (32 - 5));
+    D += ((A & C) | (B & ~C)) + w10 + 0x02441453; D = A + (D << 9 | D >>> (32 - 9));
+    C += ((D & B) | (A & ~B)) + w15 + 0xD8A1E681; C = D + (C << 14 | C >>> (32 - 14));
+    B += ((C & A) | (D & ~A)) + w4 + 0xE7D3FBC8;  B = C + (B << 20 | B >>> (32 - 20));
+
+    A += ((B & D) | (C & ~D)) + w9 + 0x21E1CDE6;  A = B + (A << 5 | A >>> (32 - 5));
+    D += ((A & C) | (B & ~C)) + w14 + 0xC33707D6; D = A + (D << 9 | D >>> (32 - 9));
+    C += ((D & B) | (A & ~B)) + w3 + 0xF4D50D87;  C = D + (C << 14 | C >>> (32 - 14));
+    B += ((C & A) | (D & ~A)) + w8 + 0x455A14ED;  B = C + (B << 20 | B >>> (32 - 20));
+
+    A += ((B & D) | (C & ~D)) + w13 + 0xA9E3E905; A = B + (A << 5 | A >>> (32 - 5));
+    D += ((A & C) | (B & ~C)) + w2 + 0xFCEFA3F8;  D = A + (D << 9 | D >>> (32 - 9));
+    C += ((D & B) | (A & ~B)) + w7 + 0x676F02D9;  C = D + (C << 14 | C >>> (32 - 14));
+    B += ((C & A) | (D & ~A)) + w12 + 0x8D2A4C8A; B = C + (B << 20 | B >>> (32 - 20));
 
     // round 3
-    A += (B ^ C ^ D) + w5 + 0xFFFA3942;  A = B + (A << 4 | A >>> -4);
-    D += (A ^ B ^ C) + w8 + 0x8771F681;  D = A + (D << 11 | D >>> -11);
-    C += (D ^ A ^ B) + w11 + 0x6D9D6122; C = D + (C << 16 | C >>> -16);
-    B += (C ^ D ^ A) + w14 + 0xFDE5380C; B = C + (B << 23 | B >>> -23);
-
-    A += (B ^ C ^ D) + w1 + 0xA4BEEA44;  A = B + (A << 4 | A >>> -4);
-    D += (A ^ B ^ C) + w4 + 0x4BDECFA9;  D = A + (D << 11 | D >>> -11);
-    C += (D ^ A ^ B) + w7 + 0xF6BB4B60;  C = D + (C << 16 | C >>> -16);
-    B += (C ^ D ^ A) + w10 + 0xBEBFBC70; B = C + (B << 23 | B >>> -23);
-
-    A += (B ^ C ^ D) + w13 + 0x289B7EC6; A = B + (A << 4 | A >>> -4);
-    D += (A ^ B ^ C) + w0 + 0xEAA127FA;  D = A + (D << 11 | D >>> -11);
-    C += (D ^ A ^ B) + w3 + 0xD4EF3085;  C = D + (C << 16 | C >>> -16);
-    B += (C ^ D ^ A) + w6 + 0x04881D05;  B = C + (B << 23 | B >>> -23);
-
-    A += (B ^ C ^ D) + w9 + 0xD9D4D039;  A = B + (A << 4 | A >>> -4);
-    D += (A ^ B ^ C) + w12 + 0xE6DB99E5; D = A + (D << 11 | D >>> -11);
-    C += (D ^ A ^ B) + w15 + 0x1FA27CF8; C = D + (C << 16 | C >>> -16);
-    B += (C ^ D ^ A) + w2 + 0xC4AC5665;  B = C + (B << 23 | B >>> -23);
+    A += (B ^ C ^ D) + w5 + 0xFFFA3942;  A = B + (A << 4 | A >>> (32 - 4));
+    D += (A ^ B ^ C) + w8 + 0x8771F681;  D = A + (D << 11 | D >>> (32 - 11));
+    C += (D ^ A ^ B) + w11 + 0x6D9D6122; C = D + (C << 16 | C >>> (32 - 16));
+    B += (C ^ D ^ A) + w14 + 0xFDE5380C; B = C + (B << 23 | B >>> (32 - 23));
+
+    A += (B ^ C ^ D) + w1 + 0xA4BEEA44;  A = B + (A << 4 | A >>> (32 - 4));
+    D += (A ^ B ^ C) + w4 + 0x4BDECFA9;  D = A + (D << 11 | D >>> (32 - 11));
+    C += (D ^ A ^ B) + w7 + 0xF6BB4B60;  C = D + (C << 16 | C >>> (32 - 16));
+    B += (C ^ D ^ A) + w10 + 0xBEBFBC70; B = C + (B << 23 | B >>> (32 - 23));
+
+    A += (B ^ C ^ D) + w13 + 0x289B7EC6; A = B + (A << 4 | A >>> (32 - 4));
+    D += (A ^ B ^ C) + w0 + 0xEAA127FA;  D = A + (D << 11 | D >>> (32 - 11));
+    C += (D ^ A ^ B) + w3 + 0xD4EF3085;  C = D + (C << 16 | C >>> (32 - 16));
+    B += (C ^ D ^ A) + w6 + 0x04881D05;  B = C + (B << 23 | B >>> (32 - 23));
+
+    A += (B ^ C ^ D) + w9 + 0xD9D4D039;  A = B + (A << 4 | A >>> (32 - 4));
+    D += (A ^ B ^ C) + w12 + 0xE6DB99E5; D = A + (D << 11 | D >>> (32 - 11));
+    C += (D ^ A ^ B) + w15 + 0x1FA27CF8; C = D + (C << 16 | C >>> (32 - 16));
+    B += (C ^ D ^ A) + w2 + 0xC4AC5665;  B = C + (B << 23 | B >>> (32 - 23));
 
     // round 4
-    A += (C ^ (B | ~D)) + w0 + 0xF4292244;  A = B + (A << 6 | A >>> -6);
-    D += (B ^ (A | ~C)) + w7 + 0x432AFF97;  D = A + (D << 10 | D >>> -10);
-    C += (A ^ (D | ~B)) + w14 + 0xAB9423A7; C = D + (C << 15 | C >>> -15);
-    B += (D ^ (C | ~A)) + w5 + 0xFC93A039;  B = C + (B << 21 | B >>> -21);
-
-    A += (C ^ (B | ~D)) + w12 + 0x655B59C3; A = B + (A << 6 | A >>> -6);
-    D += (B ^ (A | ~C)) + w3 + 0x8F0CCC92;  D = A + (D << 10 | D >>> -10);
-    C += (A ^ (D | ~B)) + w10 + 0xFFEFF47D; C = D + (C << 15 | C >>> -15);
-    B += (D ^ (C | ~A)) + w1 + 0x85845dd1;  B = C + (B << 21 | B >>> -21);
-
-    A += (C ^ (B | ~D)) + w8 + 0x6FA87E4F;  A = B + (A << 6 | A >>> -6);
-    D += (B ^ (A | ~C)) + w15 + 0xFE2CE6E0; D = A + (D << 10 | D >>> -10);
-    C += (A ^ (D | ~B)) + w6 + 0xA3014314;  C = D + (C << 15 | C >>> -15);
-    B += (D ^ (C | ~A)) + w13 + 0x4E0811A1; B = C + (B << 21 | B >>> -21);
-
-    A += (C ^ (B | ~D)) + w4 + 0xF7537E82;  A = B + (A << 6 | A >>> -6);
-    D += (B ^ (A | ~C)) + w11 + 0xBD3AF235; D = A + (D << 10 | D >>> -10);
-    C += (A ^ (D | ~B)) + w2 + 0x2AD7D2BB;  C = D + (C << 15 | C >>> -15);
-    B += (D ^ (C | ~A)) + w9 + 0xEB86D391;  B = C + (B << 21 | B >>> -21);
+    A += (C ^ (B | ~D)) + w0 + 0xF4292244;  A = B + (A << 6 | A >>> (32 - 6));
+    D += (B ^ (A | ~C)) + w7 + 0x432AFF97;  D = A + (D << 10 | D >>> (32 - 10));
+    C += (A ^ (D | ~B)) + w14 + 0xAB9423A7; C = D + (C << 15 | C >>> (32 - 15));
+    B += (D ^ (C | ~A)) + w5 + 0xFC93A039;  B = C + (B << 21 | B >>> (32 - 21));
+
+    A += (C ^ (B | ~D)) + w12 + 0x655B59C3; A = B + (A << 6 | A >>> (32 - 6));
+    D += (B ^ (A | ~C)) + w3 + 0x8F0CCC92;  D = A + (D << 10 | D >>> (32 - 10));
+    C += (A ^ (D | ~B)) + w10 + 0xFFEFF47D; C = D + (C << 15 | C >>> (32 - 15));
+    B += (D ^ (C | ~A)) + w1 + 0x85845dd1;  B = C + (B << 21 | B >>> (32 - 21));
+
+    A += (C ^ (B | ~D)) + w8 + 0x6FA87E4F;  A = B + (A << 6 | A >>> (32 - 6));
+    D += (B ^ (A | ~C)) + w15 + 0xFE2CE6E0; D = A + (D << 10 | D >>> (32 - 10));
+    C += (A ^ (D | ~B)) + w6 + 0xA3014314;  C = D + (C << 15 | C >>> (32 - 15));
+    B += (D ^ (C | ~A)) + w13 + 0x4E0811A1; B = C + (B << 21 | B >>> (32 - 21));
+
+    A += (C ^ (B | ~D)) + w4 + 0xF7537E82;  A = B + (A << 6 | A >>> (32 - 6));
+    D += (B ^ (A | ~C)) + w11 + 0xBD3AF235; D = A + (D << 10 | D >>> (32 - 10));
+    C += (A ^ (D | ~B)) + w2 + 0x2AD7D2BB;  C = D + (C << 15 | C >>> (32 - 15));
+    B += (D ^ (C | ~A)) + w9 + 0xEB86D391;  B = C + (B << 21 | B >>> (32 - 21));
 
     a += A;
     b += B;




More information about the kaffe mailing list