예제 #1
0
파일: xxHash.cs 프로젝트: mztikk/RFReborn
 private static uint Round(uint seed, uint input)
 {
     seed += input * PRIME32_2;
     seed  = MathR.RotateLeft(seed, 13);
     seed += PRIME32_1;
     return(seed);
 }
예제 #2
0
 public void RotateLeftULong(ulong input, int n, ulong result) => Assert.AreEqual(result, MathR.RotateLeft(input, n));
예제 #3
0
 public void RotateLeftUInt(uint input, int n, uint result) => Assert.AreEqual(result, MathR.RotateLeft(input, n));