57 references to IsSupported
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHashShared.cs (1)
682Vector256<ulong> product = Avx2.IsSupported ?
Microsoft.AspNetCore.Razor.Utilities.Shared (1)
Utilities\Hashing\XxHashShared.cs (1)
681Vector256<ulong> product = Avx2.IsSupported ?
Microsoft.CodeAnalysis (1)
Hashing\XxHashShared.cs (1)
682Vector256<ulong> product = Avx2.IsSupported ?
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Compilers\Core\Portable\Hashing\XxHashShared.cs (1)
682Vector256<ulong> product = Avx2.IsSupported ?
Microsoft.ML.CpuMath (1)
AvxIntrinsics.cs (1)
78if (Avx2.IsSupported)
System.IO.Hashing (2)
System\IO\Hashing\Adler32.cs (1)
205if (Vector256.IsHardwareAccelerated && Avx2.IsSupported && source.Length >= Vector256<byte>.Count)
System\IO\Hashing\XxHashShared.cs (1)
674Vector256<ulong> product = Avx2.IsSupported ?
System.Numerics.Tensors (1)
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMax.cs (1)
121if (Avx2.IsSupported)
System.Private.CoreLib (49)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64DecoderHelper.cs (2)
70if (Avx2.IsSupported && (end >= src)) 378if (Avx2.IsSupported && (end >= src))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64EncoderHelper.cs (1)
57if (Avx2.IsSupported && (end >= src))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (3)
163if (Avx2.IsSupported || ArmBase.Arm64.IsSupported) 199if (Avx2.IsSupported || ArmBase.Arm64.IsSupported) 460if (Avx2.IsSupported || ArmBase.Arm64.IsSupported)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (2)
472if (Avx2.IsSupported) 513if (Avx2.IsSupported)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (5)
497if (Avx2.IsSupported) 530if (Avx2.IsSupported) 628if (Avx2.IsSupported) 1766if (Avx2.IsSupported && ((typeof(T) == typeof(int)) || (typeof(T) == typeof(uint)))) 1801if (Avx2.IsSupported && ((typeof(T) == typeof(int)) || (typeof(T) == typeof(uint))))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\X86\Avx2.cs (1)
19public static new bool IsSupported { get => IsSupported; }
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\IndexOfAnyAsciiSearcher.cs (12)
313if (Avx2.IsSupported && searchSpaceLength > 2 * Vector128<short>.Count) 370if (!Avx2.IsSupported && searchSpaceLength > 2 * Vector128<short>.Count) 445if (Avx2.IsSupported && searchSpaceLength > 2 * Vector128<short>.Count) 501if (!Avx2.IsSupported && searchSpaceLength > 2 * Vector128<short>.Count) 598if (Avx2.IsSupported && searchSpaceLength > Vector128<byte>.Count) 652if (!Avx2.IsSupported && searchSpaceLength > Vector128<byte>.Count) 723if (Avx2.IsSupported && searchSpaceLength > Vector128<byte>.Count) 777if (!Avx2.IsSupported && searchSpaceLength > Vector128<byte>.Count) 869if (Avx2.IsSupported && searchSpaceLength > Vector128<byte>.Count) 926if (!Avx2.IsSupported && searchSpaceLength > Vector128<byte>.Count) 997if (Avx2.IsSupported && searchSpaceLength > Vector128<byte>.Count) 1054if (!Avx2.IsSupported && searchSpaceLength > Vector128<byte>.Count)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticMap.cs (2)
524if (Avx2.IsSupported && searchSpaceLength >= 32) 702if (Avx2.IsSupported && searchSpaceLength >= 32)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\AsciiStringSearchValuesTeddyBase.cs (2)
164if (Avx2.IsSupported && span.Length >= CharsPerIterationAvx2 + MatchStartOffsetN2) 185if (Avx2.IsSupported && span.Length >= CharsPerIterationAvx2 + MatchStartOffsetN3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\SingleStringSearchValuesPackedThreeChars.cs (1)
138else if (Vector256.IsHardwareAccelerated && Avx2.IsSupported && searchSpaceMinusValueTailLength - Vector256<byte>.Count >= 0)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Byte.cs (1)
1344else if (Avx2.IsSupported && remainder >= (nint)(Vector256<byte>.Count * 1.5))
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Char.cs (1)
930else if (Avx2.IsSupported && remainder >= (nint)(Vector256<ushort>.Count * 1.5))
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.cs (2)
125else if (Avx2.IsSupported && remainder >= Vector256<int>.Count * 2) 230else if (Avx2.IsSupported && remainder >= Vector256<long>.Count * 2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Packed.cs (12)
198else if (Avx2.IsSupported && length > Vector256<short>.Count) 259if (!Avx2.IsSupported && length > 2 * Vector128<short>.Count) 397else if (Avx2.IsSupported && length > Vector256<short>.Count) 460if (!Avx2.IsSupported && length > 2 * Vector128<short>.Count) 609else if (Avx2.IsSupported && length > Vector256<short>.Count) 674if (!Avx2.IsSupported && length > 2 * Vector128<short>.Count) 825else if (Avx2.IsSupported && length > Vector256<short>.Count) 892if (!Avx2.IsSupported && length > 2 * Vector128<short>.Count) 1022else if (Avx2.IsSupported && length > Vector256<short>.Count) 1087if (!Avx2.IsSupported && length > 2 * Vector128<short>.Count) 1157Debug.Assert(Avx2.IsSupported); 1303Debug.Assert(Avx2.IsSupported);
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (1)
2228if (Avx2.IsSupported && PackedSpanHelpers.CanUsePackedIndexOf(c) && PackedSpanHelpers.CanUsePackedIndexOf(c2) && PackedSpanHelpers.CanUsePackedIndexOf(c3))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (1)
1698return Avx2.IsSupported