Lines Matching full:numbits
30 int NumBits;
34 NumBits = 0;
36 public int GetRnd(int numBits)
39 if (NumBits > numBits)
41 result = Value & ((1 << numBits) - 1);
42 Value >>>= numBits;
43 NumBits -= numBits;
46 numBits -= NumBits;
47 result = (Value << numBits);
49 result |= Value & (((int)1 << numBits) - 1);
50 Value >>>= numBits;
51 NumBits = 32 - numBits;
73 int GetLogRandBits(int numBits)
75 int len = RG.GetRnd(numBits);