コード例 #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));