199 references to AsByte
Microsoft.AspNetCore.Server.HttpSys (4)
src\aspnetcore\src\Shared\ServerInfrastructure\StringUtilities.cs (4)
147var lowNibbles = Ssse3.Shuffle(Vector128.CreateScalarUnsafe(tupleNumber).AsByte(), Vector128.Create( 152).AsByte()); 154var highNibbles = Sse2.ShiftRightLogical(Sse2.ShiftRightLogical128BitLane(lowNibbles, 2).AsInt32(), 4).AsByte(); 166hex = Sse2.And(hex, Vector128.Create((ushort)0xFF).AsByte());
Microsoft.AspNetCore.Server.IIS (4)
src\aspnetcore\src\Shared\ServerInfrastructure\StringUtilities.cs (4)
147var lowNibbles = Ssse3.Shuffle(Vector128.CreateScalarUnsafe(tupleNumber).AsByte(), Vector128.Create( 152).AsByte()); 154var highNibbles = Sse2.ShiftRightLogical(Sse2.ShiftRightLogical128BitLane(lowNibbles, 2).AsInt32(), 4).AsByte(); 166hex = Sse2.And(hex, Vector128.Create((ushort)0xFF).AsByte());
Microsoft.AspNetCore.Server.Kestrel.Core (4)
src\aspnetcore\src\Shared\ServerInfrastructure\StringUtilities.cs (4)
147var lowNibbles = Ssse3.Shuffle(Vector128.CreateScalarUnsafe(tupleNumber).AsByte(), Vector128.Create( 152).AsByte()); 154var highNibbles = Sse2.ShiftRightLogical(Sse2.ShiftRightLogical128BitLane(lowNibbles, 2).AsInt32(), 4).AsByte(); 166hex = Sse2.And(hex, Vector128.Create((ushort)0xFF).AsByte());
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (4)
src\aspnetcore\src\Shared\ServerInfrastructure\StringUtilities.cs (4)
147var lowNibbles = Ssse3.Shuffle(Vector128.CreateScalarUnsafe(tupleNumber).AsByte(), Vector128.Create( 152).AsByte()); 154var highNibbles = Sse2.ShiftRightLogical(Sse2.ShiftRightLogical128BitLane(lowNibbles, 2).AsInt32(), 4).AsByte(); 166hex = Sse2.And(hex, Vector128.Create((ushort)0xFF).AsByte());
System.IO.Hashing (10)
System\IO\Hashing\Adler32.cs (8)
296Vector128<ushort> wprod1 = AdvSimd.MultiplyWideningLower(bytes1.GetLower(), tap1.AsByte().GetLower()); 297wprod1 = AdvSimd.MultiplyWideningUpperAndAdd(wprod1, bytes1, tap1.AsByte()); 300Vector128<ushort> wprod2 = AdvSimd.MultiplyWideningLower(bytes2.GetLower(), tap2.AsByte().GetLower()); 301wprod2 = AdvSimd.MultiplyWideningUpperAndAdd(wprod2, bytes2, tap2.AsByte()); 313Vector128<ushort> wprod1Lo = PackedSimd.MultiplyWideningLower(bytes1, tap1.AsByte()); 314Vector128<ushort> wprod1Hi = PackedSimd.MultiplyWideningUpper(bytes1, tap1.AsByte()); 317Vector128<ushort> wprod2Lo = PackedSimd.MultiplyWideningLower(bytes2, tap2.AsByte()); 318Vector128<ushort> wprod2Hi = PackedSimd.MultiplyWideningUpper(bytes2, tap2.AsByte());
System\IO\Hashing\VectorHelper.cs (2)
110return AdvSimd.ExtractVector128(operand.AsByte(), Vector128<byte>.Zero, numBytesToShift).AsUInt64(); 127return AdvSimd.ExtractVector128(Vector128<byte>.Zero, operand.AsByte(), 8).AsUInt64();
System.Net.Primitives (1)
System\Net\IPAddress.cs (1)
362ushorts.AsByte().CopyTo(destination);
System.Numerics.Tensors (22)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBinaryOperator.cs (4)
2743x = TAggregate.Invoke(x, Vector128.Shuffle(x.AsByte(), Vector128.Create((byte)8, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7)).As<byte, T>()); 2744x = TAggregate.Invoke(x, Vector128.Shuffle(x.AsByte(), Vector128.Create((byte)4, 5, 6, 7, 0, 1, 2, 3, 8, 9, 10, 11, 12, 13, 14, 15)).As<byte, T>()); 2745x = TAggregate.Invoke(x, Vector128.Shuffle(x.AsByte(), Vector128.Create((byte)2, 3, 0, 1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)).As<byte, T>()); 2746x = TAggregate.Invoke(x, Vector128.Shuffle(x.AsByte(), Vector128.Create((byte)1, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)).As<byte, T>());
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBooleanUnaryOperator.cs (1)
303Vector128<byte> v = TOperator.Invoke(Vector128.LoadUnsafe(ref xRef, (uint)i)).AsByte();
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMax.cs (3)
109if (sizeof(T) == 1) return Sse41.BlendVariable(left.AsByte(), right.AsByte(), (~mask).AsByte()).As<byte, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.LeadingZeroCount.cs (7)
50Vector128<byte> lowNibble = x.AsByte() & nibbleMask; 51Vector128<byte> highNibble = (x.AsInt32() >>> 4).AsByte() & nibbleMask; 85if (sizeof(T) == 1) return AdvSimd.LeadingZeroCount(x.AsByte()).As<byte, T>(); 98Vector128<byte> v = x.AsByte(); 99v |= (v.AsUInt16() >> 1).AsByte() & Vector128.Create((byte)0x7F); 100v |= (v.AsUInt16() >> 2).AsByte() & Vector128.Create((byte)0x3F); 101v |= (v.AsUInt16() >> 4).AsByte() & Vector128.Create((byte)0x0F);
System\Numerics\Tensors\netcore\TensorPrimitives.PopCount.cs (6)
62Vector128<byte> cnt = AdvSimd.PopCount(x.AsByte()); 89return PackedSimd.PopCount(x.AsByte()).As<byte, T>(); 100Vector128<byte> tmp = x.AsByte(); 101tmp -= (x.AsUInt16() >> 1).AsByte() & c1; 102tmp = (tmp & c2) + ((tmp.AsUInt16() >> 2).AsByte() & c2); 103return ((tmp + (tmp.AsUInt16() >> 4).AsByte()) & c3).As<byte, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.TrailingZeroCount.cs (1)
41return AdvSimd.LeadingZeroCount(AdvSimd.Arm64.ReverseElementBits(x.AsByte())).As<byte, T>();
System.Private.CoreLib (150)
src\runtime\src\libraries\Common\src\System\HexConverter.cs (8)
107Vector128<byte> shiftedSrc = Vector128.ShiftRightLogical(src.AsUInt64(), 4).AsByte(); 150vec = Vector128.CreateScalar(Unsafe.ReadUnaligned<ulong>(ref Unsafe.Add(ref srcRef, pos))).AsByte(); 155vec = Vector128.CreateScalar(Unsafe.ReadUnaligned<uint>(ref Unsafe.Add(ref srcRef, pos))).AsByte(); 337vec = Vector128.LoadUnsafe(ref srcRef, offset).AsByte(); 393output = Ssse3.MultiplyAddAdjacent(nibbles, Vector128.Create<short>(0x0110).AsSByte()).AsByte(); 402output = AdvSimd.AddSaturate(even, odd).AsByte(); 407Vector128<byte> zipped = PackedSimd.BitwiseSelect(nibbles, shiftedNibbles, Vector128.Create<ushort>(0xFF00).AsByte()); 408output = PackedSimd.AddPairwiseWidening(zipped).AsByte();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.ReverseEndianness.cs (2)
264Vector128.Shuffle(vector.AsByte(), Vector128.Create((byte)3, 2, 1, 0, 7, 6, 5, 4, 11, 10, 9, 8, 15, 14, 13, 12)).AsInt32(); 278Vector128.Shuffle(vector.AsByte(), Vector128.Create((byte)7, 6, 5, 4, 3, 2, 1, 0, 15, 14, 13, 12, 11, 10, 9, 8)).AsInt64();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64DecoderHelper.cs (14)
1067Vector128.Create(decoder.AdvSimdLutOne3).AsByte(), 1068Vector128.Create(0x37363534, 0x3B3A3938, 0xFFFF3D3C, 0xFFFFFFFF).AsByte()); 1075var decLutTwo = (Vector128.Create(0x0100FF00, 0x05040302, 0x09080706, 0x0D0C0B0A).AsByte(), 1076Vector128.Create(0x11100F0E, 0x15141312, 0x19181716, 0xFFFFFFFF).AsByte(), 1077Vector128.Create(decoder.AdvSimdLutTwo3Uint1, 0x1F1E1D1C, 0x23222120, 0x27262524).AsByte(), 1078Vector128.Create(0x2B2A2928, 0x2F2E2D2C, 0x33323130, 0xFFFFFFFF).AsByte()); 1253Vector128<byte> lutHi = Vector128.Create(decoder.Vector128LutHigh).AsByte(); 1254Vector128<byte> lutLo = Vector128.Create(decoder.Vector128LutLow).AsByte(); 1257Vector128<byte> mergeConstant0 = Vector128.Create(0x01400140).AsByte(); 1275Vector128<byte> hiNibbles = Vector128.ShiftRightLogical(str.AsInt32(), 4).AsByte() & mask2F; 1291merge_ab_and_bc = Ssse3.MultiplyAddAdjacent(str.AsByte(), mergeConstant0.AsSByte()); 1349str = SimdShuffle(output.AsByte(), packBytesMask.AsByte(), mask8F); 1508Vector128<byte> shift = SimdShuffle(lutShift.AsByte(), (eq2F + hiNibbles), mask8F);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64EncoderHelper.cs (14)
397Vector128<byte> tblEnc1 = Vector128.Create("ABCDEFGHIJKLMNOP"u8).AsByte(); 398Vector128<byte> tblEnc2 = Vector128.Create("QRSTUVWXYZabcdef"u8).AsByte(); 399Vector128<byte> tblEnc3 = Vector128.Create("ghijklmnopqrstuv"u8).AsByte(); 400Vector128<byte> tblEnc4 = Vector128.Create(encoder.AdvSimdLut4).AsByte(); 458Vector128<byte> shuffleVec = Vector128.Create(0x01020001, 0x04050304, 0x07080607, 0x0A0B090A).AsByte(); 459Vector128<byte> lut = Vector128.Create(0xFCFC4741, 0xFCFCFCFC, 0xFCFCFCFC, encoder.Ssse3AdvSimdLutE3).AsByte(); 460Vector128<byte> maskAC = Vector128.Create(0x0fc0fc00).AsByte(); 461Vector128<byte> maskBB = Vector128.Create(0x003f03f0).AsByte(); 533str = t1.AsByte() | t3.AsByte(); 554indices = Sse2.SubtractSaturate(str.AsByte(), const51); 558indices = AdvSimd.SubtractSaturate(str.AsByte(), const51); 562indices = PackedSimd.SubtractSaturate(str.AsByte(), const51); 578str += SimdShuffle(lut, tmp.AsByte(), mask8F);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Url\Base64UrlDecoder.cs (1)
405Vector128<byte> shift = SimdShuffle(lutShift.AsByte(), hiNibbles, mask8F);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (5)
834Vector128<byte> lowerShuffleMask_CopyToBoolArray = Vector128.Create(0, 0x01010101_01010101).AsByte(); 835Vector128<byte> upperShuffleMask_CopyToBoolArray = Vector128.Create(0x02020202_02020202, 0x03030303_03030303).AsByte(); 889Vector128<byte> bitMask128 = Vector128.Create(0x80402010_08040201).AsByte(); 898Vector128<byte> shuffledLower = Vector128.Shuffle(scalar.AsByte(), lowerShuffleMask); 903Vector128<byte> shuffledHigher = Vector128.Shuffle(scalar.AsByte(), upperShuffleMask);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\Ordinal.cs (1)
539Vector128<byte> cmpAnd = (cmpCh1 & cmpCh2).AsByte();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Guid.cs (7)
1536hexLow = Vector128.Shuffle(hexLow.AsInt16(), Vector128.Create(3, 2, 1, 0, 5, 4, 7, 6)).AsByte(); 1549Vector128.Create(0x706050403020100, 0xD0CFF0B0A0908FF).AsByte()); 1553Vector128.Create(0x7060504FF030201, 0xF0E0D0C0B0A0908).AsByte()); 1557Vector128<byte> dashesMask = Vector128.Create(0x00002D000000002D, 0x2D000000002D0000).AsByte(); 1566Vector128.Create(0x0D0CFF0B0A0908FF, 0xFF13121110FF0F0E).AsByte()); 1572Vector128.Create(0x0D0CFF0B0A0908FF, 0xFFFFFFFFFFFF0F0E).AsByte()); 1574Vector128.Create(0xFFFFFFFFFFFFFFFF, 0xFF03020100FFFFFF).AsByte());
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.MinMax.cs (4)
320x = TMinMax.Compare(x, Vector128.Shuffle(x.AsByte(), 322x = TMinMax.Compare(x, Vector128.Shuffle(x.AsByte(), 324x = TMinMax.Compare(x, Vector128.Shuffle(x.AsByte(), 326x = TMinMax.Compare(x, Vector128.Shuffle(x.AsByte(),
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix4x4.cs (6)
2556return AdvSimd.Arm64.VectorTableLookup((lower.AsByte(), upper.AsByte()), ((Vector128.Create(xIndex, yIndex, zIndex, wIndex) * Vector128.Create(0x04040404)) + Vector128.Create(0x03020100, 0x03020100, 0x13121110, 0x13121110)).AsByte()).AsSingle(); 2560return PackedSimd.Shuffle(lower.AsByte(), upper.AsByte(), ((Vector128.Create(xIndex, yIndex, zIndex, wIndex) * Vector128.Create(0x04040404)) + Vector128.Create(0x03020100, 0x03020100, 0x13121110, 0x13121110)).AsByte()).AsSingle();
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\IndexOfAnyAsciiSearcher.cs (10)
687Vector128<byte> source = Vector128.Create(source0, source1).AsByte(); 812Vector128<byte> source = Vector128.Create(source0, source1).AsByte(); 962Vector128<byte> source = Vector128.Create(source0, source1).AsByte(); 1090Vector128<byte> source = Vector128.Create(source0, source1).AsByte(); 1156? (source.AsSByte() >> 4).AsByte() 1164Vector128<byte> bitPositions = SearchValues.ShuffleNativeModified(Vector128.Create(0x8040201008040201, 0).AsByte(), highNibbles); 1219Vector128<byte> bitmask = Vector128.ShuffleNative(Vector128.Create(0x8040201008040201).AsByte(), highNibbles); 1221Vector128<byte> mask = Vector128.GreaterThan(highNibbles.AsSByte(), Vector128.Create((sbyte)0x7)).AsByte(); 1354result = (result.AsSByte() >> 7).AsByte(); 1365result = (result.AsSByte() >> 7).AsByte();
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticMap.cs (5)
239sourceLower = AdvSimd.Arm64.UnzipEven(source0.AsByte(), source1.AsByte()); 240sourceUpper = AdvSimd.Arm64.UnzipOdd(source0.AsByte(), source1.AsByte()); 272Vector128<byte> bitPositions = Vector128.ShuffleNative(Vector128.Create(0x8040201008040201).AsByte(), shifted);
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\StringSearchValuesHelper.cs (1)
386Vector128<byte> matches = Vector128.LessThan((input - subtraction).AsSByte(), comparison.AsSByte()).AsByte();
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\TeddyHelper.cs (2)
234return AdvSimd.Arm64.UnzipEven(source0.AsByte(), source1.AsByte());
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\SingleStringSearchValuesPackedThreeChars.cs (4)
263return (cmpCh1 & cmpCh2 & cmpCh3).AsByte(); 276return (cmpCh1 & cmpCh2 & cmpCh3).AsByte(); 400: AdvSimd.Arm64.UnzipEven(input0.AsByte(), input1.AsByte());
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\SingleStringSearchValuesThreeChars.cs (2)
262return (cmpCh1 & cmpCh2 & cmpCh3).AsByte(); 275return (cmpCh1 & cmpCh2 & cmpCh3).AsByte();
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Byte.cs (2)
211Vector128<byte> cmpAnd = (cmpCh1 & cmpCh2).AsByte(); 411Vector128<byte> cmpAnd = (cmpCh1 & cmpCh2).AsByte();
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Char.cs (7)
223Vector128<byte> cmpAnd = (cmpCh1 & cmpCh2).AsByte(); 432Vector128<byte> cmpAnd = (cmpCh1 & cmpCh2).AsByte(); 602uint matches = Vector128.Equals(Vector128<ushort>.Zero, search).AsByte().ExtractMostSignificantBits(); 704uint matches = Vector128.Equals(Vector128<ushort>.Zero, search).AsByte().ExtractMostSignificantBits(); 746uint matches = Vector128.Equals(Vector128<ushort>.Zero, search).AsByte().ExtractMostSignificantBits(); 792uint matches = Vector128.Equals(Vector128<ushort>.Zero, search).AsByte().ExtractMostSignificantBits(); 841uint matches = compareResult.AsByte().ExtractMostSignificantBits();
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Packed.cs (1)
1174return Sse2.PackUnsignedSaturate(source0, source1).AsByte();
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (12)
2340var cmp1 = Vector128.Equals(vector1, v1).AsByte() | Vector128.Equals(vector1, v2).AsByte() | Vector128.Equals(vector1, v3).AsByte(); 2341var cmp2 = Vector128.Equals(vector2, v1).AsByte() | Vector128.Equals(vector2, v2).AsByte() | Vector128.Equals(vector2, v3).AsByte(); 2377Vector128<byte> cmp = Vector128.Equals(vector, v1).AsByte() | Vector128.Equals(vector, v2).AsByte() | Vector128.Equals(vector, v3).AsByte(); 2400Vector128<byte> cmp = Vector128.Equals(vector, v1).AsByte() | Vector128.Equals(vector, v2).AsByte() | Vector128.Equals(vector, v3).AsByte();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Ascii.CaseConversion.cs (5)
352Vector128.StoreUnsafe(Vector128.WidenLower(blockAsVectorOfUInt64.AsByte()), ref *(ushort*)pDest, i); 411Vector128<ulong> widenedBlock = Vector128.WidenLower(blockAsVectorOfUInt32.AsByte()).AsUInt64(); 482Vector256<ushort> wide = Vector256.WidenLower(vector.AsByte().ToVector256Unsafe()); 487Vector128.StoreUnsafe(Vector128.WidenLower(vector.AsByte()), ref *(ushort*)pDest, elementOffset); 488Vector128.StoreUnsafe(Vector128.WidenUpper(vector.AsByte()), ref *(ushort*)pDest, elementOffset + 8);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Equality.cs (2)
513Vector128<byte> vec = Vector128.CreateScalarUnsafe(Unsafe.ReadUnaligned<long>(ref ptr)).AsByte(); 518Vector128<byte> vec = Vector128.CreateScalarUnsafe(Unsafe.ReadUnaligned<long>(ref ptr)).AsByte();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (15)
75Vector128<byte> mostSignificantBitIsSet = (value.AsSByte() >> 7).AsByte(); 377Vector128.Create((ushort)0x1001).AsByte() : 378Vector128.Create((ushort)0x0110).AsByte(); 1129currentMask = (uint)Sse2.MoveMask(Sse2.AddSaturate(firstVector, asciiMaskForAddSaturate).AsByte()); 1154Vector128<byte> compareResult = AdvSimd.CompareGreaterThan(firstVector, largestAsciiValue).AsByte(); 1565return (Sse2.MoveMask(Sse2.AddSaturate(utf16Vector, asciiMaskForAddSaturate).AsByte()) & 0b_1010_1010_1010_1010) != 0; 1608? VectorContainsNonAsciiChar(vector.AsByte()) 1622Sse41.IsSupported ? (vector.AsByte() & Vector128.Create((byte)0x80)) == Vector128<byte>.Zero : 1623AdvSimd.Arm64.IsSupported ? AllBytesInUInt64AreAscii(AdvSimd.Arm64.MaxPairwise(vector.AsByte(), vector.AsByte()).AsUInt64().ToScalar()) : 1624vector.AsByte().ExtractMostSignificantBits() == 0; 1683return AdvSimd.Arm64.UnzipEven(vectorFirst.AsByte(), vectorSecond.AsByte()); 2285Vector128<byte> vecNarrow = AdvSimd.DuplicateToVector128(value).AsByte(); 2291Vector128<byte> vecNarrow = Vector128.CreateScalar(value).AsByte();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Latin1Utility.cs (13)
215currentMask = (uint)Sse2.MoveMask(Sse2.AddSaturate(firstVector, latin1MaskForAddSaturate).AsByte()); 279currentMask = (uint)Sse2.MoveMask(Sse2.AddSaturate(combinedVector, latin1MaskForAddSaturate).AsByte()); 324currentMask = (uint)Sse2.MoveMask(Sse2.AddSaturate(firstVector, latin1MaskForAddSaturate).AsByte()); 359currentMask = (uint)Sse2.MoveMask(Sse2.AddSaturate(firstVector, latin1MaskForAddSaturate).AsByte()); 392currentMask = (uint)Sse2.MoveMask(Sse2.AddSaturate(firstVector, latin1MaskForAddSaturate).AsByte()); 407currentMask = (uint)Sse2.MoveMask(Sse2.AddSaturate(firstVector, latin1MaskForAddSaturate).AsByte()); 806if ((Sse2.MoveMask(Sse2.AddSaturate(utf16VectorFirst.AsUInt16(), latin1MaskForAddSaturate).AsByte()) & NonLatin1DataSeenMask) != 0) 848if ((Sse2.MoveMask(Sse2.AddSaturate(utf16VectorFirst.AsUInt16(), latin1MaskForAddSaturate).AsByte()) & NonLatin1DataSeenMask) != 0) 889if ((Sse2.MoveMask(Sse2.AddSaturate(combinedVector.AsUInt16(), latin1MaskForAddSaturate).AsByte()) & NonLatin1DataSeenMask) != 0) 925if ((Sse2.MoveMask(Sse2.AddSaturate(utf16VectorFirst.AsUInt16(), latin1MaskForAddSaturate).AsByte()) & NonLatin1DataSeenMask) != 0) 989latin1Vector = Sse2.LoadScalarVector128((ulong*)pLatin1Buffer).AsByte(); // unaligned load 1037latin1Vector = Sse2.LoadScalarVector128((ulong*)(pLatin1Buffer + currentOffset)).AsByte(); // unaligned load 1046latin1Vector = Sse2.LoadScalarVector128((uint*)(pLatin1Buffer + currentOffset)).AsByte(); // unaligned load
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf16Utility.Validation.cs (4)
27ulong mask = AdvSimd.Arm64.UnzipOdd(cmp.AsByte(), cmp.AsByte()).AsUInt64().ToScalar(); 174uint debugMask = charIsNonAscii.AsByte().ExtractMostSignificantBits(); 199uint mask = (charIsNonAscii | charIsThreeByteUtf8Encoded).AsByte().ExtractMostSignificantBits();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8Utility.Validation.cs (3)
133Vector128.Create((ushort)0x1001).AsByte() : 134Vector128.Create((ushort)0x0110).AsByte(); 771Vector128<byte> mostSignificantBitIsSet = (value.AsSByte() >> 7).AsByte();