1.1 --- a/vm/src/test/java/org/apidesign/vm4brwsr/Numbers.java Fri Feb 01 06:09:18 2013 +0100
1.2 +++ b/vm/src/test/java/org/apidesign/vm4brwsr/Numbers.java Fri Feb 01 09:00:30 2013 +0100
1.3 @@ -72,6 +72,12 @@
1.4 return Long.MAX_VALUE;
1.5 }
1.6
1.7 + public static long negL(byte[] arrValue) throws IOException {
1.8 + ByteArrayInputStream isValue = new ByteArrayInputStream(arrValue);
1.9 + DataInputStream disValue = new DataInputStream(isValue);
1.10 + return (-disValue.readLong());
1.11 + }
1.12 +
1.13 public static long addL(byte[] arrX, byte[] arrY) throws IOException {
1.14 ByteArrayInputStream isX = new ByteArrayInputStream(arrX);
1.15 DataInputStream disX = new DataInputStream(isX);