// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Runtime.CompilerServices; using System.Runtime.Intrinsics; namespace System.Runtime.Intrinsics.X86 { /// /// This class provides access to Intel BMI2 hardware instructions via intrinsics /// [CLSCompliant(false)] public abstract class Bmi2 { internal Bmi2() { } public static bool IsSupported { [Intrinsic] get { return false; } } public abstract class X64 { internal X64() { } public static bool IsSupported { [Intrinsic] get { return false; } } /// /// unsigned __int64 _bzhi_u64 (unsigned __int64 a, unsigned int index) /// BZHI r64a, reg/m32, r64b /// This intrinisc is only available on 64-bit processes /// public static ulong ZeroHighBits(ulong value, ulong index) { throw new PlatformNotSupportedException(); } /// /// unsigned __int64 _mulx_u64 (unsigned __int64 a, unsigned __int64 b, unsigned __int64* hi) /// MULX r64a, r64b, reg/m64 /// The above native signature does not directly correspond to the managed signature. /// This intrinisc is only available on 64-bit processes /// public static ulong MultiplyNoFlags(ulong left, ulong right) { throw new PlatformNotSupportedException(); } /// /// unsigned __int64 _mulx_u64 (unsigned __int64 a, unsigned __int64 b, unsigned __int64* hi) /// MULX r64a, r64b, reg/m64 /// The above native signature does not directly correspond to the managed signature. /// This intrinisc is only available on 64-bit processes /// public static unsafe ulong MultiplyNoFlags(ulong left, ulong right, ulong* low) { throw new PlatformNotSupportedException(); } /// /// unsigned __int64 _pdep_u64 (unsigned __int64 a, unsigned __int64 mask) /// PDEP r64a, r64b, reg/m64 /// This intrinisc is only available on 64-bit processes /// public static ulong ParallelBitDeposit(ulong value, ulong mask) { throw new PlatformNotSupportedException(); } /// /// unsigned __int64 _pext_u64 (unsigned __int64 a, unsigned __int64 mask) /// PEXT r64a, r64b, reg/m64 /// This intrinisc is only available on 64-bit processes /// public static ulong ParallelBitExtract(ulong value, ulong mask) { throw new PlatformNotSupportedException(); } } /// /// unsigned int _bzhi_u32 (unsigned int a, unsigned int index) /// BZHI r32a, reg/m32, r32b /// public static uint ZeroHighBits(uint value, uint index) { throw new PlatformNotSupportedException(); } /// /// unsigned int _mulx_u32 (unsigned int a, unsigned int b, unsigned int* hi) /// MULX r32a, r32b, reg/m32 /// The above native signature does not directly correspond to the managed signature. /// public static uint MultiplyNoFlags(uint left, uint right) { throw new PlatformNotSupportedException(); } /// /// unsigned int _mulx_u32 (unsigned int a, unsigned int b, unsigned int* hi) /// MULX r32a, r32b, reg/m32 /// The above native signature does not directly correspond to the managed signature. /// public static unsafe uint MultiplyNoFlags(uint left, uint right, uint* low) { throw new PlatformNotSupportedException(); } /// /// unsigned int _pdep_u32 (unsigned int a, unsigned int mask) /// PDEP r32a, r32b, reg/m32 /// public static uint ParallelBitDeposit(uint value, uint mask) { throw new PlatformNotSupportedException(); } /// /// unsigned int _pext_u32 (unsigned int a, unsigned int mask) /// PEXT r32a, r32b, reg/m32 /// public static uint ParallelBitExtract(uint value, uint mask) { throw new PlatformNotSupportedException(); } } }