mirror of https://github.com/dotnet/runtime
Merge b3da547163
into 02596ba8d9
This commit is contained in:
commit
a912b7c2c8
|
@ -211,7 +211,7 @@ namespace System.Buffers
|
|||
// On X86, characters above 32767 are turned into 0, but we account for that by not using Teddy if any of the string values contain a 0.
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
[CompExactlyDependsOn(typeof(Sse2))]
|
||||
[CompExactlyDependsOn(typeof(AdvSimd))]
|
||||
[CompExactlyDependsOn(typeof(AdvSimd.Arm64))]
|
||||
public static Vector128<byte> LoadAndPack16AsciiChars(ref char source)
|
||||
{
|
||||
Vector128<ushort> source0 = Vector128.LoadUnsafe(ref source);
|
||||
|
@ -221,9 +221,9 @@ namespace System.Buffers
|
|||
{
|
||||
return Sse2.PackUnsignedSaturate(source0.AsInt16(), source1.AsInt16());
|
||||
}
|
||||
else if (AdvSimd.IsSupported)
|
||||
else if (AdvSimd.Arm64.IsSupported)
|
||||
{
|
||||
return AdvSimd.ExtractNarrowingSaturateUpper(AdvSimd.ExtractNarrowingSaturateLower(source0), source1);
|
||||
return AdvSimd.Arm64.UnzipEven(source0.AsByte(), source1.AsByte());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue