28 references to AsInt16
System.Numerics.Tensors (9)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IIndexOfMinMaxOperator.cs (3)
437
(Vector256<int> mask1, Vector256<int> mask2) = Vector256.Widen(mask.
AsInt16
());
450
Vector256<short> aggMask = ~Vector256.Equals(result.
AsInt16
(), Vector256.Create(aggResult).
AsInt16
());
System\Numerics\Tensors\netcore\TensorPrimitives.BitDecrement.cs (1)
260
return Vector256.ConditionalSelect(specialMask, specialValue, result).
AsInt16
();
System\Numerics\Tensors\netcore\TensorPrimitives.BitIncrement.cs (1)
260
return Vector256.ConditionalSelect(specialMask, specialValue, result).
AsInt16
();
System\Numerics\Tensors\netcore\TensorPrimitives.Half.cs (4)
332
TUnary.Invoke(xVecUpper)).
AsInt16
();
370
TBinary.Invoke(xVecUpper, yVecUpper)).
AsInt16
();
409
TAggregate.Invoke(xVecUpper, yVecUpper)).
AsInt16
();
477
TTernary.Invoke(xVecUpper, yVecUpper, zVecUpper)).
AsInt16
();
System.Private.CoreLib (19)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64DecoderHelper.cs (1)
948
Vector256<short> mergeConstant1 = Vector256.Create(0x00011000).
AsInt16
();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64EncoderHelper.cs (2)
253
Vector256<short> shiftBB = Vector256.Create(0x01000010).
AsInt16
();
323
Vector256<short> t3 = t2.
AsInt16
() * shiftBB;
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\IndexOfAnyAsciiSearcher.cs (4)
1418
Vector256.Min(lower, Vector256.Create((ushort)255)).
AsInt16
(),
1419
Vector256.Min(upper, Vector256.Create((ushort)255)).
AsInt16
());
1455
return Avx2.PackUnsignedSaturate(lower.
AsInt16
(), upper.
AsInt16
());
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticMap.cs (4)
190
(source0 & Vector256.Create((ushort)255)).
AsInt16
(),
191
(source1 & Vector256.Create((ushort)255)).
AsInt16
());
194
(source0 >>> 8).
AsInt16
(),
195
(source1 >>> 8).
AsInt16
());
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\TeddyHelper.cs (2)
261
Vector256<byte> packed = Avx2.PackUnsignedSaturate(source0.
AsInt16
(), source1.
AsInt16
());
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\SingleStringSearchValuesPackedThreeChars.cs (2)
407
Vector256.LoadUnsafe(ref Unsafe.AddByteOffset(ref searchSpace, byteOffset)).
AsInt16
(),
408
Vector256.LoadUnsafe(ref Unsafe.AddByteOffset(ref searchSpace, byteOffset + (uint)Vector256<byte>.Count)).
AsInt16
());
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (2)
2241
var packed = PackedSpanHelpers.PackSources(vector1.
AsInt16
(), vector2.
AsInt16
());
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (2)
1699
? PackedSpanHelpers.FixUpPackedVector256Result(Avx2.PackUnsignedSaturate(vectorFirst.
AsInt16
(), vectorSecond.
AsInt16
()))