37 references to AsInt32
System.Numerics.Tensors (17)
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMax.cs (4)
73
Vector256<T> sameSign = Vector256.Equals(IsNegative(result).
AsInt32
(), currentNegative.
AsInt32
()).As<int, T>();
455
sizeof(T) == sizeof(int) ? Vector256.LessThan(indices1.
AsInt32
(), indices2.
AsInt32
()).As<int, T>() :
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMaxMagnitude.cs (2)
72
Vector256<T> sameSign = Vector256.Equals(IsNegative(result).
AsInt32
(), currentNegative.
AsInt32
()).As<int, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMin.cs (2)
70
Vector256<T> sameSign = Vector256.Equals(resultNegative.
AsInt32
(), IsNegative(current).
AsInt32
()).As<int, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMinMagnitude.cs (2)
72
Vector256<T> sameSign = Vector256.Equals(resultNegative.
AsInt32
(), IsNegative(current).
AsInt32
()).As<int, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.LeadingZeroCount.cs (1)
100
Vector256<byte> highNibble = Avx2.ShiftRightLogical(x.
AsInt32
(), 4).AsByte() & nibbleMask;
System\Numerics\Tensors\netcore\TensorPrimitives.Sign.cs (6)
69
return Vector256.ConditionalSelect(Vector256.Equals(x, Vector256<T>.Zero).
AsInt32
(),
76
Vector256<int> value = x.
AsInt32
();
77
return (value >> 31) | ((-value).AsUInt32() >> 31).
AsInt32
();
80
if (Vector256.EqualsAny(IsNaN(x).
AsInt32
(), Vector256<int>.AllBitsSet))
85
return Vector256.ConditionalSelect(Vector256.LessThan(x, Vector256<T>.Zero).
AsInt32
(),
87
Vector256.ConditionalSelect(Vector256.GreaterThan(x, Vector256<T>.Zero).
AsInt32
(),
System.Private.CoreLib (20)
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\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64DecoderHelper.cs (3)
756
-1, -1, -1, -1).
AsInt32
();
774
Vector256<sbyte> hiNibbles = Avx2.And(Avx2.ShiftRightLogical(str.
AsInt32
(), 4).AsSByte(), maskSlashOrUnderscore);
800
output = Avx2.Shuffle(output.AsSByte(), packBytesInLaneMask).
AsInt32
();
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64EncoderHelper.cs (2)
267
str = Avx2.PermuteVar8x32(str.
AsInt32
(), Vector256.Create(
275
6, 0, 0, 0).
AsInt32
()).AsSByte();
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (12)
115
return All(vector.
AsInt32
(), -1);
149
return Any(vector.
AsInt32
(), -1);
433
lowerBits = vector.
AsInt32
();
434
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)
564
Vector256<int> lowerBits = Avx2.And(vector, Create(0x0000FFFFU)).
AsInt32
();
565
Vector256<int> upperBits = Avx2.ShiftRightLogical(vector, 16).
AsInt32
();
795
return Count(vector.
AsInt32
(), -1);
1956
return IndexOf(vector.
AsInt32
(), -1);
2051
return LessThan(vector.
AsInt32
(), Vector256<int>.Zero).As<int, T>();
2126
return GreaterThanOrEqual(vector.
AsInt32
(), Vector256<int>.Zero).As<int, T>();
2187
return LastIndexOf(vector.
AsInt32
(), -1);
2868
return None(vector.
AsInt32
(), -1);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256_1.cs (1)
400
return result.
AsInt32
() == Vector256<int>.AllBitsSet;
src\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticMap.cs (1)
171
Vector256<byte> shifted = (values.
AsInt32
() >>> VectorizedIndexShift).AsByte();