vm/src/test/java/org/apidesign/vm4brwsr/Numbers.java
brancharithmetic
changeset 698 ff57af563cb8
parent 680 7ffb635a5c4f
child 699 6cad41d877d2
     1.1 --- a/vm/src/test/java/org/apidesign/vm4brwsr/Numbers.java	Wed Feb 06 12:46:35 2013 +0100
     1.2 +++ b/vm/src/test/java/org/apidesign/vm4brwsr/Numbers.java	Thu Feb 07 16:11:53 2013 +0100
     1.3 @@ -68,56 +68,6 @@
     1.4          return new Float(7.0).toString().toString();
     1.5      }
     1.6      
     1.7 -    public static long conversionL() {
     1.8 -        return Long.MAX_VALUE;
     1.9 -    }
    1.10 -    
    1.11 -    public static long negL(byte[] arrValue) throws IOException {
    1.12 -        ByteArrayInputStream isValue = new ByteArrayInputStream(arrValue);
    1.13 -        DataInputStream disValue = new DataInputStream(isValue);
    1.14 -        return (-disValue.readLong());
    1.15 -    }
    1.16 -    
    1.17 -    public static long addL(byte[] arrX, byte[] arrY) throws IOException {
    1.18 -        ByteArrayInputStream isX = new ByteArrayInputStream(arrX);
    1.19 -        DataInputStream disX = new DataInputStream(isX);
    1.20 -        ByteArrayInputStream isY = new ByteArrayInputStream(arrY);
    1.21 -        DataInputStream disY = new DataInputStream(isY);
    1.22 -        return (disX.readLong() + disY.readLong());
    1.23 -    }
    1.24 -    
    1.25 -    public static long subL(byte[] arrX, byte[] arrY) throws IOException {
    1.26 -        ByteArrayInputStream isX = new ByteArrayInputStream(arrX);
    1.27 -        DataInputStream disX = new DataInputStream(isX);
    1.28 -        ByteArrayInputStream isY = new ByteArrayInputStream(arrY);
    1.29 -        DataInputStream disY = new DataInputStream(isY);
    1.30 -        return (disX.readLong() - disY.readLong());
    1.31 -    }
    1.32 -    
    1.33 -    public static long mulL(byte[] arrX, byte[] arrY) throws IOException {
    1.34 -        ByteArrayInputStream isX = new ByteArrayInputStream(arrX);
    1.35 -        DataInputStream disX = new DataInputStream(isX);
    1.36 -        ByteArrayInputStream isY = new ByteArrayInputStream(arrY);
    1.37 -        DataInputStream disY = new DataInputStream(isY);
    1.38 -        return (disX.readLong() * disY.readLong());
    1.39 -    }
    1.40 -    
    1.41 -    public static long divL(byte[] arrX, byte[] arrY) throws IOException {
    1.42 -        ByteArrayInputStream isX = new ByteArrayInputStream(arrX);
    1.43 -        DataInputStream disX = new DataInputStream(isX);
    1.44 -        ByteArrayInputStream isY = new ByteArrayInputStream(arrY);
    1.45 -        DataInputStream disY = new DataInputStream(isY);
    1.46 -        return (disX.readLong() / disY.readLong());
    1.47 -    }
    1.48 -    
    1.49 -    public static long modL(byte[] arrX, byte[] arrY) throws IOException {
    1.50 -        ByteArrayInputStream isX = new ByteArrayInputStream(arrX);
    1.51 -        DataInputStream disX = new DataInputStream(isX);
    1.52 -        ByteArrayInputStream isY = new ByteArrayInputStream(arrY);
    1.53 -        DataInputStream disY = new DataInputStream(isY);
    1.54 -        return (disX.readLong() % disY.readLong());
    1.55 -    }
    1.56 -    
    1.57      public static long shlL(byte[] arrValue, int nBits) throws IOException {
    1.58          ByteArrayInputStream isValue = new ByteArrayInputStream(arrValue);
    1.59          DataInputStream disValue = new DataInputStream(isValue);