21 references to AsInt16
System.Numerics.Tensors (6)
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\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMax.cs (2)
456
sizeof(T) == sizeof(short) ? Vector256.LessThan(indices1.
AsInt16
(), indices2.
AsInt16
()).As<short, T>() :
System.Private.CoreLib (15)
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64DecoderHelper.cs (1)
761
Vector256<short> mergeConstant1 = Vector256.Create(0x00011000).
AsInt16
();
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64EncoderHelper.cs (2)
255
Vector256<short> shiftBB = Vector256.Create(0x01000010).
AsInt16
();
325
Vector256<short> t3 = Avx2.MultiplyLow(t2.
AsInt16
(), shiftBB);
src\libraries\System.Private.CoreLib\src\System\SearchValues\IndexOfAnyAsciiSearcher.cs (4)
1393
Vector256.Min(lower, Vector256.Create((ushort)255)).
AsInt16
(),
1394
Vector256.Min(upper, Vector256.Create((ushort)255)).
AsInt16
());
1430
return Avx2.PackUnsignedSaturate(lower.
AsInt16
(), upper.
AsInt16
());
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\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\TeddyHelper.cs (2)
245
Vector256<byte> packed = Avx2.PackUnsignedSaturate(source0.
AsInt16
(), source1.
AsInt16
());
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (2)
1694
? PackedSpanHelpers.FixUpPackedVector256Result(Avx2.PackUnsignedSaturate(vectorFirst.
AsInt16
(), vectorSecond.
AsInt16
()))