Added ability to order the execution of dictionary adapter behaviors.
[castle.git] / Experiments / Attic / Rook / Castle.Rook.Compiler / Parser / SupportClass.cs
blobddea9888108d1b846fc332d695a9f440bb6adbbb
1 using System;
2 internal class SupportClass
4 public static int URShift(int number, int bits)
6 if ( number >= 0)
7 return number >> bits;
8 else
9 return (number >> bits) + (2 << ~bits);
12 public static int URShift(int number, long bits)
14 return URShift(number, (int)bits);
17 public static long URShift(long number, int bits)
19 if ( number >= 0)
20 return number >> bits;
21 else
22 return (number >> bits) + (2L << ~bits);
25 public static long URShift(long number, long bits)
27 return URShift(number, (int)bits);