Files
YooAsset/Assets/YooAsset/Runtime/xxHash/xxHash3.XXH64.cs

20 lines
494 B
C#

// ReSharper disable InconsistentNaming
using System.Runtime.CompilerServices;
namespace Standart.Hash.xxHash
{
public static partial class xxHash3
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private static ulong XXH64_avalanche(ulong hash)
{
hash ^= hash >> 33;
hash *= XXH_PRIME64_2;
hash ^= hash >> 29;
hash *= XXH_PRIME64_3;
hash ^= hash >> 32;
return hash;
}
}
}