3 types derived from AdvSimd
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Arm\Dp.PlatformNotSupported.cs (1)
11public abstract class Dp : AdvSimd
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Arm\Rdm.PlatformNotSupported.cs (1)
11public abstract class Rdm : AdvSimd
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Arm\Sve.PlatformNotSupported.cs (1)
19abstract class Sve : AdvSimd
327 references to AdvSimd
GenerateDocumentationAndConfigFiles (2)
src\Compilers\Core\Portable\Hashing\XxHashShared.cs (2)
708if (AdvSimd.IsSupported) 712return AdvSimd.MultiplyWideningLower(sourceLow, sourceHigh);
Microsoft.CodeAnalysis (2)
Hashing\XxHashShared.cs (2)
708if (AdvSimd.IsSupported) 712return AdvSimd.MultiplyWideningLower(sourceLow, sourceHigh);
Microsoft.CodeAnalysis.Workspaces (2)
src\Compilers\Core\Portable\Hashing\XxHashShared.cs (2)
708if (AdvSimd.IsSupported) 712return AdvSimd.MultiplyWideningLower(sourceLow, sourceHigh);
System.IO.Hashing (17)
System\IO\Hashing\Adler32.cs (10)
284else if (AdvSimd.IsSupported) 287vs1 = AdvSimd.AddPairwiseWideningAndAdd( 289AdvSimd.AddPairwiseWideningAndAdd( 290AdvSimd.AddPairwiseWidening(bytes1), 295Vector128<ushort> wprod1 = AdvSimd.MultiplyWideningLower(bytes1.GetLower(), tap1.AsByte().GetLower()); 296wprod1 = AdvSimd.MultiplyWideningUpperAndAdd(wprod1, bytes1, tap1.AsByte()); 297vs2 = AdvSimd.AddPairwiseWideningAndAdd(vs2, wprod1); 299Vector128<ushort> wprod2 = AdvSimd.MultiplyWideningLower(bytes2.GetLower(), tap2.AsByte().GetLower()); 300wprod2 = AdvSimd.MultiplyWideningUpperAndAdd(wprod2, bytes2, tap2.AsByte()); 301vs2 = AdvSimd.AddPairwiseWideningAndAdd(vs2, wprod2);
System\IO\Hashing\VectorHelper.cs (5)
18public static bool IsSupported => Pclmulqdq.IsSupported || (Aes.IsSupported && AdvSimd.IsSupported); 108if (AdvSimd.IsSupported) 110return AdvSimd.ExtractVector128(operand.AsByte(), Vector128<byte>.Zero, numBytesToShift).AsUInt64(); 125if (AdvSimd.IsSupported) 127return AdvSimd.ExtractVector128(Vector128<byte>.Zero, operand.AsByte(), 8).AsUInt64();
System\IO\Hashing\XxHashShared.cs (2)
699if (AdvSimd.IsSupported) 703return AdvSimd.MultiplyWideningLower(sourceLow, sourceHigh);
System.Numerics.Tensors (30)
System\Numerics\Tensors\netcore\TensorPrimitives.LeadingZeroCount.cs (5)
34(AdvSimd.IsSupported && (sizeof(T) == 1 || sizeof(T) == 2 || sizeof(T) == 4)); 80Debug.Assert(AdvSimd.IsSupported); 82if (sizeof(T) == 1) return AdvSimd.LeadingZeroCount(x.AsByte()).As<byte, T>(); 83if (sizeof(T) == 2) return AdvSimd.LeadingZeroCount(x.AsUInt16()).As<ushort, T>(); 86return AdvSimd.LeadingZeroCount(x.AsUInt32()).As<uint, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.PopCount.cs (9)
53(sizeof(T) is 1 or 2 or 4) || (AdvSimd.IsSupported && sizeof(T) == 8); 60if (AdvSimd.IsSupported) 62Vector128<byte> cnt = AdvSimd.PopCount(x.AsByte()); 71return AdvSimd.AddPairwiseWidening(cnt).As<ushort, T>(); 76return AdvSimd.AddPairwiseWidening(AdvSimd.AddPairwiseWidening(cnt)).As<uint, T>(); 81return AdvSimd.AddPairwiseWidening(AdvSimd.AddPairwiseWidening(AdvSimd.AddPairwiseWidening(cnt))).As<ulong, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Reciprocal.cs (8)
137if (AdvSimd.IsSupported) 139if (typeof(T) == typeof(float)) return AdvSimd.ReciprocalEstimate(x.AsSingle()).As<float, T>(); 142if (AdvSimd.Arm64.IsSupported) 144if (typeof(T) == typeof(double)) return AdvSimd.Arm64.ReciprocalEstimate(x.AsDouble()).As<double, T>(); 197if (AdvSimd.IsSupported) 199if (typeof(T) == typeof(float)) return AdvSimd.ReciprocalSquareRootEstimate(x.AsSingle()).As<float, T>(); 202if (AdvSimd.Arm64.IsSupported) 204if (typeof(T) == typeof(double)) return AdvSimd.Arm64.ReciprocalSquareRootEstimate(x.AsDouble()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Round.cs (4)
241if (AdvSimd.IsSupported) 243return AdvSimd.RoundAwayFromZero(x.AsSingle()).As<float, T>(); 250if (AdvSimd.Arm64.IsSupported) 252return AdvSimd.Arm64.RoundAwayFromZero(x.AsDouble()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.TrailingZeroCount.cs (4)
31(AdvSimd.Arm64.IsSupported && sizeof(T) == 1) || 39if (AdvSimd.Arm64.IsSupported && sizeof(T) == 1) 41return AdvSimd.LeadingZeroCount(AdvSimd.Arm64.ReverseElementBits(x.AsByte())).As<byte, T>();
System.Private.CoreLib (271)
src\libraries\Common\src\System\HexConverter.cs (13)
98[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 101Debug.Assert(Ssse3.IsSupported || AdvSimd.Arm64.IsSupported); 117[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 190if ((AdvSimd.Arm64.IsSupported || Ssse3.IsSupported) && (source.Length >= (Vector128<byte>.Count / 2))) 207if ((AdvSimd.Arm64.IsSupported || Ssse3.IsSupported) && (source.Length >= (Vector128<ushort>.Count / 2))) 277if (BitConverter.IsLittleEndian && (Ssse3.IsSupported || AdvSimd.Arm64.IsSupported || PackedSimd.IsSupported) && 289if (BitConverter.IsLittleEndian && (Ssse3.IsSupported || AdvSimd.Arm64.IsSupported || PackedSimd.IsSupported) && 299[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 304Debug.Assert(Ssse3.IsSupported || AdvSimd.Arm64.IsSupported || PackedSimd.IsSupported); 393else if (AdvSimd.Arm64.IsSupported) 396Vector128<short> even = AdvSimd.Arm64.TransposeEven(nibbles, Vector128<byte>.Zero).AsInt16(); 397Vector128<short> odd = AdvSimd.Arm64.TransposeOdd(nibbles, Vector128<byte>.Zero).AsInt16(); 400output = AdvSimd.AddSaturate(even, odd).AsByte();
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64DecoderHelper.cs (36)
80if (AdvSimd.Arm64.IsSupported && (end >= src)) 91if ((Ssse3.IsSupported || AdvSimd.Arm64.IsSupported) && BitConverter.IsLittleEndian && (end >= src)) 970[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 973Debug.Assert((Ssse3.IsSupported || AdvSimd.Arm64.IsSupported) && BitConverter.IsLittleEndian); 981return AdvSimd.Arm64.VectorTableLookup(left, right & mask8F); 986[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 1061Vector128<byte> decOne1 = AdvSimd.Arm64.VectorTableLookup(decLutOne, str1); 1062Vector128<byte> decOne2 = AdvSimd.Arm64.VectorTableLookup(decLutOne, str2); 1063Vector128<byte> decOne3 = AdvSimd.Arm64.VectorTableLookup(decLutOne, str3); 1064Vector128<byte> decOne4 = AdvSimd.Arm64.VectorTableLookup(decLutOne, str4); 1075Vector128<byte> decTwo1 = AdvSimd.SubtractSaturate(str1, offset); 1076Vector128<byte> decTwo2 = AdvSimd.SubtractSaturate(str2, offset); 1077Vector128<byte> decTwo3 = AdvSimd.SubtractSaturate(str3, offset); 1078Vector128<byte> decTwo4 = AdvSimd.SubtractSaturate(str4, offset); 1081decTwo1 = AdvSimd.Arm64.VectorTableLookupExtension(decTwo1, decLutTwo, decTwo1); 1082decTwo2 = AdvSimd.Arm64.VectorTableLookupExtension(decTwo2, decLutTwo, decTwo2); 1083decTwo3 = AdvSimd.Arm64.VectorTableLookupExtension(decTwo3, decLutTwo, decTwo3); 1084decTwo4 = AdvSimd.Arm64.VectorTableLookupExtension(decTwo4, decLutTwo, decTwo4); 1115AdvSimd.Arm64.StoreVectorAndZip(dest, (res1, res2, res3)); 1127[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 1134Debug.Assert((Ssse3.IsSupported || AdvSimd.Arm64.IsSupported) && BitConverter.IsLittleEndian); 1249else if (AdvSimd.Arm64.IsSupported) 1251Vector128<ushort> evens = AdvSimd.ShiftLeftLogicalWideningLower(AdvSimd.Arm64.UnzipEven(str, one).GetLower(), 6); 1252Vector128<ushort> odds = AdvSimd.Arm64.TransposeOdd(str, Vector128<byte>.Zero).AsUInt16(); 1271else if (AdvSimd.Arm64.IsSupported) 1273Vector128<int> ievens = AdvSimd.ShiftLeftLogicalWideningLower(AdvSimd.Arm64.UnzipEven(merge_ab_and_bc, one.AsInt16()).GetLower(), 12); 1274Vector128<int> iodds = AdvSimd.Arm64.TransposeOdd(merge_ab_and_bc, Vector128<short>.Zero).AsInt32(); 1422[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 1515[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 1521(str1, str2, str3, str4) = AdvSimd.Arm64.Load4xVector128AndUnzip(src); 1649[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 1715[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 1721var (s11, s12, s21, s22) = AdvSimd.Arm64.Load4xVector128AndUnzip(src); 1722var (s31, s32, s41, s42) = AdvSimd.Arm64.Load4xVector128AndUnzip(src + 32);
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64EncoderHelper.cs (25)
65if (AdvSimd.Arm64.IsSupported && (end >= src)) 74if ((Ssse3.IsSupported || AdvSimd.Arm64.IsSupported) && BitConverter.IsLittleEndian && (end >= src)) 385[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 411(str1, str2, str3) = AdvSimd.Arm64.Load3xVector128AndUnzip(src); 417res2 = AdvSimd.ShiftLeftAndInsert(res2, str1, 4); 418res3 = AdvSimd.ShiftLeftAndInsert(res3, str2, 2); 421res2 &= AdvSimd.DuplicateToVector128((byte)0x3F); 422res3 &= AdvSimd.DuplicateToVector128((byte)0x3F); 423res4 = str3 & AdvSimd.DuplicateToVector128((byte)0x3F); 428res1 = AdvSimd.Arm64.VectorTableLookup((tblEnc1, tblEnc2, tblEnc3, tblEnc4), res1); 429res2 = AdvSimd.Arm64.VectorTableLookup((tblEnc1, tblEnc2, tblEnc3, tblEnc4), res2); 430res3 = AdvSimd.Arm64.VectorTableLookup((tblEnc1, tblEnc2, tblEnc3, tblEnc4), res3); 431res4 = AdvSimd.Arm64.VectorTableLookup((tblEnc1, tblEnc2, tblEnc3, tblEnc4), res4); 446[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 505else if (AdvSimd.Arm64.IsSupported) 507Vector128<ushort> odd = Vector128.ShiftRightLogical(AdvSimd.Arm64.UnzipOdd(t0.AsUInt16(), t0.AsUInt16()), 6); 508Vector128<ushort> even = Vector128.ShiftRightLogical(AdvSimd.Arm64.UnzipEven(t0.AsUInt16(), t0.AsUInt16()), 10); 509t1 = AdvSimd.Arm64.ZipLow(even, odd); 551else if (AdvSimd.IsSupported) 553indices = AdvSimd.SubtractSaturate(str.AsByte(), const51); 798[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 804AdvSimd.Arm64.StoreVectorAndZip(dest, (res1, res2, res3, res4)); 889[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 899AdvSimd.Arm64.StoreVectorAndZip(dest, (utf16LowVector1, utf16LowVector2, utf16LowVector3, utf16LowVector4)); 900AdvSimd.Arm64.StoreVectorAndZip(dest + 32, (utf16HighVector1, utf16HighVector2, utf16HighVector3, utf16HighVector4));
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Url\Base64UrlDecoder.cs (4)
376[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 464[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 526[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 555[CompExactlyDependsOn(typeof(AdvSimd.Arm64))]
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Url\Base64UrlEncoder.cs (2)
307[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 370[CompExactlyDependsOn(typeof(AdvSimd.Arm64))]
src\libraries\System.Private.CoreLib\src\System\Guid.cs (5)
1350if ((Ssse3.IsSupported || AdvSimd.Arm64.IsSupported) && BitConverter.IsLittleEndian) 1517[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 1520Debug.Assert((Ssse3.IsSupported || AdvSimd.Arm64.IsSupported) && BitConverter.IsLittleEndian); 1558if (AdvSimd.Arm64.IsSupported) 1565Vector128<byte> mid = AdvSimd.Arm64.VectorTableLookup((hexLow, hexHigh),
src\libraries\System.Private.CoreLib\src\System\Math.cs (2)
1366if (AdvSimd.IsSupported) 1367return AdvSimd.RoundAwayFromZeroScalar(Vector64.CreateScalarUnsafe(value)).ToScalar();
src\libraries\System.Private.CoreLib\src\System\MathF.cs (2)
403if (AdvSimd.IsSupported) 404return AdvSimd.RoundAwayFromZeroScalar(Vector64.CreateScalarUnsafe(x)).ToScalar();
src\libraries\System.Private.CoreLib\src\System\Numerics\BitOperations.cs (6)
437if (AdvSimd.Arm64.IsSupported) 442Vector64<byte> aggregated = AdvSimd.Arm64.AddAcross(AdvSimd.PopCount(input.AsByte())); 478if (AdvSimd.Arm64.IsSupported) 482Vector64<byte> aggregated = AdvSimd.Arm64.AddAcross(AdvSimd.PopCount(input.AsByte()));
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix4x4.Impl.cs (9)
1560if (AdvSimd.Arm64.IsSupported) 1567Vector128<float> lowerXZ = AdvSimd.Arm64.ZipLow(x, z); // x[0], z[0], x[1], z[1] 1568Vector128<float> lowerYW = AdvSimd.Arm64.ZipLow(y, w); // y[0], w[0], y[1], w[1] 1569Vector128<float> upperXZ = AdvSimd.Arm64.ZipHigh(x, z); // x[2], z[2], x[3], z[3] 1570Vector128<float> upperYW = AdvSimd.Arm64.ZipHigh(y, w); // y[2], w[2], y[3], z[3] 1572result.X = AdvSimd.Arm64.ZipLow(lowerXZ, lowerYW).AsVector4(); // x[0], y[0], z[0], w[0] 1573result.Y = AdvSimd.Arm64.ZipHigh(lowerXZ, lowerYW).AsVector4(); // x[1], y[1], z[1], w[1] 1574result.Z = AdvSimd.Arm64.ZipLow(upperXZ, upperYW).AsVector4(); // x[2], y[2], z[2], w[2] 1575result.W = AdvSimd.Arm64.ZipHigh(upperXZ, upperYW).AsVector4(); // x[3], y[3], z[3], w[3]
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Arm\Dp.PlatformNotSupported.cs (1)
21public new abstract class Arm64 : AdvSimd.Arm64
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Arm\Rdm.PlatformNotSupported.cs (1)
21public new abstract class Arm64 : AdvSimd.Arm64
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Arm\Sve.PlatformNotSupported.cs (1)
29public new abstract class Arm64 : AdvSimd.Arm64
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (7)
1296if (AdvSimd.IsSupported) 4531[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 4539else if (!AdvSimd.Arm64.IsSupported) 4543return AdvSimd.Arm64.ZipLow(left, right); 4547[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 4555else if (!AdvSimd.Arm64.IsSupported) 4559return AdvSimd.Arm64.ZipHigh(left, right);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\VectorMath.cs (4)
2593if (AdvSimd.Arm64.IsSupported) 2595result = (TVectorSingle)(object)AdvSimd.Arm64.ConvertToSingleLower((Vector128<double>)(object)vector); 2910if (AdvSimd.Arm64.IsSupported) 2912result = (TVectorDouble)(object)AdvSimd.Arm64.ConvertToDouble((Vector64<float>)(object)vector);
src\libraries\System.Private.CoreLib\src\System\SearchValues\Any2CharPackedIgnoreCaseSearchValues.cs (2)
53[CompExactlyDependsOn(typeof(AdvSimd))] 61[CompExactlyDependsOn(typeof(AdvSimd))]
src\libraries\System.Private.CoreLib\src\System\SearchValues\AnyByteSearchValues.cs (6)
27[CompExactlyDependsOn(typeof(AdvSimd))] 35[CompExactlyDependsOn(typeof(AdvSimd))] 43[CompExactlyDependsOn(typeof(AdvSimd))] 51[CompExactlyDependsOn(typeof(AdvSimd))] 59[CompExactlyDependsOn(typeof(AdvSimd))] 67[CompExactlyDependsOn(typeof(AdvSimd))]
src\libraries\System.Private.CoreLib\src\System\SearchValues\AsciiByteSearchValues.cs (7)
23Debug.Assert(Ascii.IsValid(values) || (TUniqueLowNibble.Value && (AdvSimd.IsSupported || PackedSimd.IsSupported))); 43[CompExactlyDependsOn(typeof(AdvSimd))] 51[CompExactlyDependsOn(typeof(AdvSimd))] 59[CompExactlyDependsOn(typeof(AdvSimd))] 67[CompExactlyDependsOn(typeof(AdvSimd))] 75[CompExactlyDependsOn(typeof(AdvSimd))] 83[CompExactlyDependsOn(typeof(AdvSimd))]
src\libraries\System.Private.CoreLib\src\System\SearchValues\AsciiCharSearchValues.cs (7)
24Debug.Assert(Ascii.IsValid(values) || (TUniqueLowNibble.Value && (AdvSimd.IsSupported || PackedSimd.IsSupported))); 45[CompExactlyDependsOn(typeof(AdvSimd))] 53[CompExactlyDependsOn(typeof(AdvSimd))] 61[CompExactlyDependsOn(typeof(AdvSimd))] 69[CompExactlyDependsOn(typeof(AdvSimd))] 77[CompExactlyDependsOn(typeof(AdvSimd))] 85[CompExactlyDependsOn(typeof(AdvSimd))]
src\libraries\System.Private.CoreLib\src\System\SearchValues\IndexOfAnyAsciiSearcher.cs (21)
34internal static bool IsVectorizationSupported => Ssse3.IsSupported || AdvSimd.Arm64.IsSupported || PackedSimd.IsSupported; 266[CompExactlyDependsOn(typeof(AdvSimd))] 276[CompExactlyDependsOn(typeof(AdvSimd))] 285[CompExactlyDependsOn(typeof(AdvSimd))] 423[CompExactlyDependsOn(typeof(AdvSimd))] 554[CompExactlyDependsOn(typeof(AdvSimd))] 563[CompExactlyDependsOn(typeof(AdvSimd))] 571[CompExactlyDependsOn(typeof(AdvSimd))] 702[CompExactlyDependsOn(typeof(AdvSimd))] 828[CompExactlyDependsOn(typeof(AdvSimd))] 836[CompExactlyDependsOn(typeof(AdvSimd))] 843[CompExactlyDependsOn(typeof(AdvSimd))] 977[CompExactlyDependsOn(typeof(AdvSimd))] 1106[CompExactlyDependsOn(typeof(AdvSimd))] 1122[CompExactlyDependsOn(typeof(AdvSimd))] 1157Vector128<byte> highNibbles = AdvSimd.IsSupported 1208[CompExactlyDependsOn(typeof(AdvSimd))] 1405[CompExactlyDependsOn(typeof(AdvSimd))] 1413else if (AdvSimd.IsSupported) 1415return AdvSimd.ExtractNarrowingSaturateUpper(AdvSimd.ExtractNarrowingSaturateLower(lower), upper);
src\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticMap.cs (16)
83if (Sse41.IsSupported || AdvSimd.Arm64.IsSupported) 95private static bool IsCharBitSet(ref uint charMap, byte value) => Sse41.IsSupported || AdvSimd.Arm64.IsSupported 221[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 236else if (AdvSimd.Arm64.IsSupported) 238sourceLower = AdvSimd.Arm64.UnzipEven(source0.AsByte(), source1.AsByte()); 239sourceUpper = AdvSimd.Arm64.UnzipOdd(source0.AsByte(), source1.AsByte()); 259[CompExactlyDependsOn(typeof(AdvSimd))] 260[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 271if (AdvSimd.Arm64.IsSupported) 273bitMask = AdvSimd.Arm64.VectorTableLookup((charMapLower, charMapUpper), index); 395if ((Sse41.IsSupported || AdvSimd.Arm64.IsSupported) && searchSpaceLength >= 16) 409if ((Sse41.IsSupported || AdvSimd.Arm64.IsSupported) && searchSpaceLength >= 16) 502[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 507Debug.Assert(Sse41.IsSupported || AdvSimd.Arm64.IsSupported); 680[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 685Debug.Assert(Sse41.IsSupported || AdvSimd.Arm64.IsSupported);
src\libraries\System.Private.CoreLib\src\System\SearchValues\SearchValues.cs (1)
209if (Sse41.IsSupported || AdvSimd.Arm64.IsSupported)
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\AsciiStringSearchValuesTeddyBase.cs (4)
152[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 172[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 192[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 352[CompExactlyDependsOn(typeof(AdvSimd.Arm64))]
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\AsciiStringSearchValuesTeddyBucketizedN2.cs (1)
20[CompExactlyDependsOn(typeof(AdvSimd.Arm64))]
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\AsciiStringSearchValuesTeddyBucketizedN3.cs (1)
20[CompExactlyDependsOn(typeof(AdvSimd.Arm64))]
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\AsciiStringSearchValuesTeddyNonBucketizedN2.cs (1)
20[CompExactlyDependsOn(typeof(AdvSimd.Arm64))]
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\AsciiStringSearchValuesTeddyNonBucketizedN3.cs (1)
20[CompExactlyDependsOn(typeof(AdvSimd.Arm64))]
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\StringSearchValuesHelper.cs (2)
277if (AdvSimd.IsSupported) 346if (AdvSimd.IsSupported)
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\TeddyHelper.cs (13)
19[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 92[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 218[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 228else if (AdvSimd.Arm64.IsSupported) 230return AdvSimd.Arm64.UnzipEven(source0.AsByte(), source1.AsByte()); 278[CompExactlyDependsOn(typeof(AdvSimd))] 318[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 340[CompExactlyDependsOn(typeof(AdvSimd))] 353else if (AdvSimd.IsSupported) 355return AdvSimd.ExtractVector128(left, right, 15); 367[CompExactlyDependsOn(typeof(AdvSimd))] 380else if (AdvSimd.IsSupported) 382return AdvSimd.ExtractVector128(left, right, 14);
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\SingleStringSearchValuesPackedThreeChars.cs (5)
52Debug.Assert(Sse2.IsSupported || AdvSimd.Arm64.IsSupported); 185else if ((Sse2.IsSupported || AdvSimd.Arm64.IsSupported) && searchSpaceMinusValueTailLength - Vector128<byte>.Count >= 0) 252[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 392[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 400: AdvSimd.Arm64.UnzipEven(input0.AsByte(), input1.AsByte());
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\StringSearchValues.cs (2)
131if ((Ssse3.IsSupported || AdvSimd.Arm64.IsSupported) && 463(AdvSimd.Arm64.IsSupported && c <= byte.MaxValue);
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Equality.cs (2)
507if (AdvSimd.IsSupported) 509return AdvSimd.ZeroExtendWideningLower(Vector64.LoadUnsafe(ref ptr));
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (37)
66[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 69if (!AdvSimd.Arm64.IsSupported || !BitConverter.IsLittleEndian) 79extractedBits = AdvSimd.Arm64.AddPairwise(extractedBits, extractedBits); 119(Sse2.IsSupported || AdvSimd.IsSupported)) 364Debug.Assert(AdvSimd.IsSupported); 376Debug.Assert(Sse2.IsSupported || AdvSimd.Arm64.IsSupported, "Sse2 or AdvSimd64 required."); 407else if (AdvSimd.Arm64.IsSupported) 409Vector128<byte> vector = AdvSimd.LoadVector128(pBuffer); 467else if (AdvSimd.Arm64.IsSupported) 469Vector128<byte> firstVector = AdvSimd.LoadVector128(pBuffer); 470Vector128<byte> secondVector = AdvSimd.LoadVector128(pBuffer + SizeOfVector128); 513else if (AdvSimd.Arm64.IsSupported) 515Vector128<byte> vector = AdvSimd.LoadVector128(pBuffer); 549else if (AdvSimd.Arm64.IsSupported) 551Vector128<byte> vector = AdvSimd.LoadVector128(pBuffer); 584else if (AdvSimd.IsSupported) 607else if (AdvSimd.Arm64.IsSupported) 745(Sse2.IsSupported || AdvSimd.IsSupported)) 980Debug.Assert(Sse2.IsSupported || AdvSimd.Arm64.IsSupported, "Should've been checked by caller."); 1152else if (AdvSimd.Arm64.IsSupported) 1160Vector128<byte> compareResult = AdvSimd.CompareGreaterThan(firstVector, largestAsciiValue).AsByte(); 1161ulong asciiCompareMask = AdvSimd.Arm64.UnzipOdd(compareResult, compareResult).AsUInt64().ToScalar(); 1289else if (AdvSimd.IsSupported) 1295Vector64<byte> lower = AdvSimd.ExtractNarrowingSaturateUnsignedLower(vecWide); 1544else if (AdvSimd.Arm64.IsSupported) 1546Vector128<byte> maxBytes = AdvSimd.Arm64.MaxPairwise(asciiVector, asciiVector); 1574else if (AdvSimd.Arm64.IsSupported) 1578Vector128<ushort> maxChars = AdvSimd.Arm64.MaxPairwise(utf16Vector, utf16Vector); 1630AdvSimd.Arm64.IsSupported ? AllBytesInUInt64AreAscii(AdvSimd.Arm64.MaxPairwise(vector.AsByte(), vector.AsByte()).AsUInt64().ToScalar()) : 1636AdvSimd.Arm64.IsSupported ? AllCharsInUInt64AreAscii(AdvSimd.Arm64.MaxPairwise(vector.AsUInt16(), vector.AsUInt16()).AsUInt64().ToScalar()) : 1688else if (AdvSimd.Arm64.IsSupported) 1690return AdvSimd.Arm64.UnzipEven(vectorFirst.AsByte(), vectorSecond.AsByte()); 2295if (AdvSimd.Arm64.IsSupported) 2297Vector128<byte> vecNarrow = AdvSimd.DuplicateToVector128(value).AsByte(); 2298Vector128<ulong> vecWide = AdvSimd.Arm64.ZipLow(vecNarrow, Vector128<byte>.Zero).AsUInt64();
src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf16Utility.Validation.cs (5)
22if (AdvSimd.Arm64.IsSupported) 27ulong mask = AdvSimd.Arm64.UnzipOdd(cmp.AsByte(), cmp.AsByte()).AsUInt64().ToScalar(); 44if (AdvSimd.Arm64.IsSupported) 56if (AdvSimd.Arm64.IsSupported) 144if (AdvSimd.Arm64.IsSupported)
src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8Utility.Transcoding.cs (13)
889if (Sse41.X64.IsSupported || (AdvSimd.Arm64.IsSupported && BitConverter.IsLittleEndian)) 949if (Sse41.X64.IsSupported || (AdvSimd.Arm64.IsSupported && BitConverter.IsLittleEndian)) 964if (AdvSimd.Arm64.IsSupported) 966Vector128<short> isUtf16DataNonAscii = AdvSimd.CompareTest(utf16Data, nonAsciiUtf16DataMask); 967bool hasNonAsciiDataInVector = AdvSimd.Arm64.MinPairwise(isUtf16DataNonAscii, isUtf16DataNonAscii).AsUInt64().ToScalar() != 0; 974Vector64<byte> lower = AdvSimd.ExtractNarrowingSaturateUnsignedLower(utf16Data); 975AdvSimd.Store(pOutputBuffer, lower); 1011if (AdvSimd.IsSupported) 1013Vector64<byte> lower = AdvSimd.ExtractNarrowingSaturateUnsignedLower(utf16Data); 1014AdvSimd.StoreSelectedScalar((uint*)pOutputBuffer, lower.AsUInt32(), 0); 1054if (AdvSimd.IsSupported) 1056Vector64<byte> lower = AdvSimd.ExtractNarrowingSaturateUnsignedLower(utf16Data); 1057AdvSimd.StoreSelectedScalar((uint*)pOutputBuffer, lower.AsUInt32(), 0);
src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8Utility.Validation.cs (6)
128if (AdvSimd.Arm64.IsSupported && BitConverter.IsLittleEndian) 137ulong mask = GetNonAsciiBytes(AdvSimd.LoadVector128(pInputBuffer), bitMask128); 186Debug.Assert((AdvSimd.Arm64.IsSupported && BitConverter.IsLittleEndian) || Sse2.IsSupported); 754[CompExactlyDependsOn(typeof(AdvSimd.Arm64))] 757if (!AdvSimd.Arm64.IsSupported || !BitConverter.IsLittleEndian) 764extractedBits = AdvSimd.Arm64.AddPairwise(extractedBits, extractedBits);
System.Runtime.Intrinsics (1)
artifacts\obj\System.Runtime.Intrinsics\Debug\net11.0\System.Runtime.Intrinsics.Forwards.cs (1)
3[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.Intrinsics.Arm.AdvSimd))]
Test.Utilities (2)
src\Compilers\Core\Portable\Hashing\XxHashShared.cs (2)
708if (AdvSimd.IsSupported) 712return AdvSimd.MultiplyWideningLower(sourceLow, sourceHigh);