Exemplo n.º 1
0
 private static uint Round(uint seed, uint input)
 {
     seed += input * PRIME32_2;
     seed  = MathR.RotateLeft(seed, 13);
     seed += PRIME32_1;
     return(seed);
 }
Exemplo n.º 2
0
 public void RotateLeftULong(ulong input, int n, ulong result) => Assert.AreEqual(result, MathR.RotateLeft(input, n));
Exemplo n.º 3
0
 public void RotateLeftUInt(uint input, int n, uint result) => Assert.AreEqual(result, MathR.RotateLeft(input, n));