1.1 --- a/vm/src/test/java/org/apidesign/vm4brwsr/StaticMethod.java Fri Sep 28 14:58:21 2012 +0200
1.2 +++ b/vm/src/test/java/org/apidesign/vm4brwsr/StaticMethod.java Mon Oct 08 17:10:27 2012 -0700
1.3 @@ -61,6 +61,16 @@
1.4 public static long orOrAnd(boolean doOr, int a, int b) {
1.5 return doOr ? a | b : a & b;
1.6 }
1.7 + public static int shiftLeft(int what, int much) {
1.8 + return what << much;
1.9 + }
1.10 + public static int shiftArithmRight(int what, int much, boolean signed) {
1.11 + if (signed) {
1.12 + return what >> much;
1.13 + } else {
1.14 + return what >>> much;
1.15 + }
1.16 + }
1.17 public static long factRec(int n) {
1.18 if (n <= 1) {
1.19 return 1;