1.1 --- a/vm/src/test/java/org/apidesign/vm4brwsr/Numbers.java Fri Feb 01 09:00:30 2013 +0100
1.2 +++ b/vm/src/test/java/org/apidesign/vm4brwsr/Numbers.java Mon Feb 04 09:41:33 2013 +0100
1.3 @@ -94,8 +94,12 @@
1.4 return (disX.readLong() - disY.readLong());
1.5 }
1.6
1.7 - public static long mulL(long x, long y) {
1.8 - return (x * y);
1.9 + public static long mulL(byte[] arrX, byte[] arrY) throws IOException {
1.10 + ByteArrayInputStream isX = new ByteArrayInputStream(arrX);
1.11 + DataInputStream disX = new DataInputStream(isX);
1.12 + ByteArrayInputStream isY = new ByteArrayInputStream(arrY);
1.13 + DataInputStream disY = new DataInputStream(isY);
1.14 + return (disX.readLong() * disY.readLong());
1.15 }
1.16
1.17 public static long divL(long x, long y) {