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