Example #1
0
 private static uint MixState(uint v1, uint v2, uint v3, uint v4)
 {
     return(BitOperationHelper.RotateLeft(v1, 1) + BitOperationHelper.RotateLeft(v2, 7) + BitOperationHelper.RotateLeft(v3, 12) + BitOperationHelper.RotateLeft(v4, 18));
 }
Example #2
0
 private static uint AccumRemainingLane(uint hash, uint lane)
 {
     return(BitOperationHelper.RotateLeft(hash + lane * Prime3, 17) * Prime4);
 }
Example #3
0
 private static uint AccumByte(uint hash, byte b)
 {
     return(BitOperationHelper.RotateLeft(hash + (uint)b * Prime5, 11) * Prime1);
 }
Example #4
0
 private static uint AccumBlockLane(uint hash, uint lane)
 {
     return(BitOperationHelper.RotateLeft(hash + lane * Prime2, 13) * Prime1);
 }