mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-22 08:20:18 +00:00
20 lines
494 B
C#
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;
|
|
}
|
|
}
|
|
} |