36 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)
68
return Vector256.ConditionalSelect(Vector256.Equals(x, Vector256<T>.Zero).
AsInt32
(),
75
Vector256<int> value = x.
AsInt32
();
76
return (value >> 31) | ((-value).AsUInt32() >> 31).
AsInt32
();
79
if (Vector256.EqualsAny(IsNaN(x).
AsInt32
(), Vector256<int>.AllBitsSet))
84
return Vector256.ConditionalSelect(Vector256.LessThan(x, Vector256<T>.Zero).
AsInt32
(),
86
Vector256.ConditionalSelect(Vector256.GreaterThan(x, Vector256<T>.Zero).
AsInt32
(),
System.Private.CoreLib (19)
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)
103
return All(vector.
AsInt32
(), -1);
137
return Any(vector.
AsInt32
(), -1);
421
lowerBits = vector.
AsInt32
();
422
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)
552
Vector256<int> lowerBits = Avx2.And(vector, Create(0x0000FFFFU)).
AsInt32
();
553
Vector256<int> upperBits = Avx2.ShiftRightLogical(vector, 16).
AsInt32
();
783
return Count(vector.
AsInt32
(), -1);
1944
return IndexOf(vector.
AsInt32
(), -1);
2039
return LessThan(vector.
AsInt32
(), Vector256<int>.Zero).As<int, T>();
2114
return GreaterThanOrEqual(vector.
AsInt32
(), Vector256<int>.Zero).As<int, T>();
2175
return LastIndexOf(vector.
AsInt32
(), -1);
2820
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)
165
Vector256<byte> shifted = (values.
AsInt32
() >>> VectorizedIndexShift).AsByte();