30 references to AsByte
System.Collections (2)
System\Collections\BitArray.cs (2)
846Vector512<byte> bitMask = Vector512.Create(0x80402010_08040201).AsByte(); 855Vector512<byte> shuffled = Avx512BW.Shuffle(scalar.AsByte(), shuffleMask);
System.Numerics.Tensors (8)
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMax.cs (2)
464Vector512.LessThan(indices1.AsByte(), indices2.AsByte()).As<byte, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.LeadingZeroCount.cs (2)
154Vector512<byte> bit7ZeroMask = Avx512BW.CompareLessThan(x.AsByte(), Vector512.Create((byte)128)); 155return Avx512F.And(bit7ZeroMask, Avx512Vbmi.PermuteVar64x8x2(lookupVectorA, x.AsByte(), lookupVectorB)).As<byte, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.PopCount.cs (4)
196Vector512<byte> tmp = x.AsByte(); 197tmp -= (x.AsUInt16() >> 1).AsByte() & c1; 198tmp = (tmp & c2) + ((tmp.AsUInt16() >> 2).AsByte() & c2); 199return ((tmp + (tmp.AsUInt16() >> 4).AsByte()) & c3).As<byte, T>();
System.Private.CoreLib (20)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64DecoderHelper.cs (3)
6700x00000000, 0x00000000, 0x00000000, 0x00000000).AsByte(); 697Vector512<short> multiAdd1 = Avx512BW.MultiplyAddAdjacent(origIndex.AsByte(), mergeConstant0); 702str = Avx512Vbmi.PermuteVar64x8(multiAdd2.AsByte(), vbmiPackedLanesControl).AsSByte();
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64EncoderHelper.cs (1)
195encoder.StoreVector512ToDestination(dest, destStart, destLength, str.AsByte());
src\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticMap.cs (5)
113Vector512<byte> sourceLower = Avx512Vbmi.PermuteVar64x8x2(source0.AsByte(), Vector512.CreateSequence<byte>(0, 2), source1.AsByte()); 114Vector512<byte> sourceUpper = Avx512Vbmi.PermuteVar64x8x2(source0.AsByte(), Vector512.CreateSequence<byte>(1, 2), source1.AsByte()); 132Vector512<byte> bitPositions = Avx512Vbmi.PermuteVar64x8(Vector512.Create(0x8040201008040201).AsByte(), shifted);
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\StringSearchValuesHelper.cs (1)
369Vector512<byte> matches = Vector512.LessThan((input - subtraction).AsSByte(), comparison.AsSByte()).AsByte();
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\SingleStringSearchValuesThreeChars.cs (2)
313return (cmpCh1 & cmpCh2 & cmpCh3).AsByte(); 322return (cmpCh1 & cmpCh2 & cmpCh3).AsByte();
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Byte.cs (2)
89Vector512<byte> cmpAnd = (cmpCh1 & cmpCh2).AsByte(); 316Vector512<byte> cmpAnd = (cmpCh1 & cmpCh2).AsByte();
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Char.cs (2)
93Vector512<byte> cmpAnd = (cmpCh1 & cmpCh2).AsByte(); 332Vector512<byte> cmpAnd = (cmpCh1 & cmpCh2).AsByte();
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Packed.cs (2)
1150return Avx512BW.PackUnsignedSaturate(source0, source1).AsByte(); 1318return Avx512F.PermuteVar8x64(result.AsInt64(), Vector512.Create(0, 2, 4, 6, 1, 3, 5, 7)).AsByte();
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (1)
2055Vector512<byte> cmp = (v1Eq | v2Eq | v3Eq).AsByte();
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (1)
1657return vector.AsByte().ExtractMostSignificantBits() == 0;