35 references to AsInt32
System.Numerics.Tensors (7)
System\Numerics\Tensors\netcore\TensorPrimitives.LeadingZeroCount.cs (1)
126Vector256<byte> highNibble = (x.AsInt32() >>> 4).AsByte() & nibbleMask;
System\Numerics\Tensors\netcore\TensorPrimitives.Sign.cs (6)
67return Vector256.ConditionalSelect(Vector256.Equals(x, Vector256<T>.Zero).AsInt32(), 74Vector256<int> value = x.AsInt32(); 75return (value >> 31) | ((-value).AsUInt32() >> 31).AsInt32(); 78if (Vector256.EqualsAny(Vector256.IsNaN(x).AsInt32(), Vector256<int>.AllBitsSet)) 83return Vector256.ConditionalSelect(Vector256.LessThan(x, Vector256<T>.Zero).AsInt32(), 85Vector256.ConditionalSelect(Vector256.GreaterThan(x, Vector256<T>.Zero).AsInt32(),
System.Private.CoreLib (28)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Binary\BinaryPrimitives.ReverseEndianness.cs (1)
268Vector256.Shuffle(vector.AsByte(), Vector256.Create((byte)3, 2, 1, 0, 7, 6, 5, 4, 11, 10, 9, 8, 15, 14, 13, 12, 19, 18, 17, 16, 23, 22, 21, 20, 27, 26, 25, 24, 31, 30, 29, 28)).AsInt32();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64DecoderHelper.cs (3)
943-1, -1, -1, -1).AsInt32(); 961Vector256<sbyte> hiNibbles = ((str.AsInt32()) >>> 4).AsSByte() & maskSlashOrUnderscore; 987output = Avx2.Shuffle(output.AsSByte(), packBytesInLaneMask).AsInt32();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64EncoderHelper.cs (2)
265str = Avx2.PermuteVar8x32(str.AsInt32(), Vector256.Create( 2736, 0, 0, 0).AsInt32()).AsSByte();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256_1.cs (1)
400return result.AsInt32() == Vector256<int>.AllBitsSet;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (20)
198return All(vector.AsInt32(), -1); 232return Any(vector.AsInt32(), -1); 504lowerBits = vector.AsInt32(); 505lowerBits = Avx2.Blend(lowerBits, Create(0x43300000_00000000).AsInt32(), 0b10101010); // Blend the 32 lowest significant bits of vector with the bit representation of double(2^52) 635Vector256<int> lowerBits = Avx2.And(vector, Create(0x0000FFFFU)).AsInt32(); 636Vector256<int> upperBits = Avx2.ShiftRightLogical(vector, 16).AsInt32(); 903return Count(vector.AsInt32(), -1); 1768Vector256<int> lower = Avx2.UnpackLow(left.AsInt32(), right.AsInt32()); 1769Vector256<int> upper = Avx2.UnpackHigh(left.AsInt32(), right.AsInt32()); 1803Vector256<int> leftUnzip = Avx2.Shuffle(left.AsInt32(), 0xD8); 1804leftUnzip = Avx2.Permute4x64(leftUnzip.AsInt64(), 0xD8).AsInt32(); 1806Vector256<int> rightUnzip = Avx2.Shuffle(right.AsInt32(), 0xD8); 1807rightUnzip = Avx2.Permute4x64(rightUnzip.AsInt64(), 0xD8).AsInt32(); 2232return IndexOf(vector.AsInt32(), -1); 2323return LessThan(vector.AsInt32(), Vector256<int>.Zero).As<int, T>(); 2394return GreaterThanOrEqual(vector.AsInt32(), Vector256<int>.Zero).As<int, T>(); 2455return LastIndexOf(vector.AsInt32(), -1); 3136return None(vector.AsInt32(), -1);
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticMap.cs (1)
171Vector256<byte> shifted = (values.AsInt32() >>> VectorizedIndexShift).AsByte();