diff --git a/src/Standart.Hash.xxHash/xxHash128.XXH.cs b/src/Standart.Hash.xxHash/xxHash128.XXH.cs index c1bb5a7..8e076f3 100644 --- a/src/Standart.Hash.xxHash/xxHash128.XXH.cs +++ b/src/Standart.Hash.xxHash/xxHash128.XXH.cs @@ -97,7 +97,7 @@ private static ulong XXH_mult32to64(ulong x, ulong y) [MethodImpl(MethodImplOptions.AggressiveInlining)] private static uint128 XXH_mult64to128(ulong lhs, ulong rhs) { - if (Bmi2.IsSupported) + if (Bmi2.X64.IsSupported) return XXH_mult64to128_bmi2(lhs, rhs); return XXH_mult64to128_scalar(lhs, rhs); @@ -138,4 +138,4 @@ private static unsafe void XXH_writeLE64(byte* dst, ulong v64) *(ulong*) dst = v64; } } -} \ No newline at end of file +} diff --git a/src/Standart.Hash.xxHash/xxHash3.XXH.cs b/src/Standart.Hash.xxHash/xxHash3.XXH.cs index 71f210d..20234ab 100644 --- a/src/Standart.Hash.xxHash/xxHash3.XXH.cs +++ b/src/Standart.Hash.xxHash/xxHash3.XXH.cs @@ -96,7 +96,7 @@ private static unsafe void XXH_writeLE64(byte* dst, ulong v64) [MethodImpl(MethodImplOptions.AggressiveInlining)] private static uint128 XXH_mult64to128(ulong lhs, ulong rhs) { - if (Bmi2.IsSupported) + if (Bmi2.X64.IsSupported) return XXH_mult64to128_bmi2(lhs, rhs); return XXH_mult64to128_scalar(lhs, rhs); @@ -131,4 +131,4 @@ private static uint128 XXH_mult64to128_scalar(ulong lhs, ulong rhs) return r128; } } -} \ No newline at end of file +}