40 references to AsInt16
System.Numerics.Tensors (11)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBinaryOperator.cs (3)
2750x = TAggregate.Invoke(x, Vector128.Shuffle(x.AsInt16(), Vector128.Create(4, 5, 6, 7, 0, 1, 2, 3)).As<short, T>()); 2751x = TAggregate.Invoke(x, Vector128.Shuffle(x.AsInt16(), Vector128.Create(2, 3, 0, 1, 4, 5, 6, 7)).As<short, T>()); 2752x = TAggregate.Invoke(x, Vector128.Shuffle(x.AsInt16(), Vector128.Create(1, 0, 2, 3, 4, 5, 6, 7)).As<short, T>());
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IIndexOfOperator.cs (8)
57tmpResult = Vector128.Shuffle(result.AsInt16(), Vector128.Create(4, 5, 6, 7, 0, 1, 2, 3)).As<short, T>(); 58tmpIndex = Vector128.Shuffle(resultIndex.AsInt16(), Vector128.Create(4, 5, 6, 7, 0, 1, 2, 3)).As<short, T>(); 62tmpResult = Vector128.Shuffle(result.AsInt16(), Vector128.Create(2, 3, 0, 1, 4, 5, 6, 7)).As<short, T>(); 63tmpIndex = Vector128.Shuffle(resultIndex.AsInt16(), Vector128.Create(2, 3, 0, 1, 4, 5, 6, 7)).As<short, T>(); 67tmpResult = Vector128.Shuffle(result.AsInt16(), Vector128.Create(1, 0, 2, 3, 4, 5, 6, 7)).As<short, T>(); 68tmpIndex = Vector128.Shuffle(resultIndex.AsInt16(), Vector128.Create(1, 0, 2, 3, 4, 5, 6, 7)).As<short, T>(); 129sizeof(T) == sizeof(short) ? Vector128.LessThan(indices1.AsInt16(), indices2.AsInt16()).As<short, T>() :
System.Private.CoreLib (29)
src\libraries\Common\src\System\HexConverter.cs (3)
314Vector128<short> even = AdvSimd.Arm64.TransposeEven(nibbles, Vector128<byte>.Zero).AsInt16(); 315Vector128<short> odd = AdvSimd.Arm64.TransposeOdd(nibbles, Vector128<byte>.Zero).AsInt16(); 316even = AdvSimd.ShiftLeftLogical(even, 4).AsInt16();
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64DecoderHelper.cs (3)
1071Vector128<short> mergeConstant1 = Vector128.Create(0x00011000).AsInt16(); 1110merge_ab_and_bc = Vector128.Add(evens, odds).AsInt16(); 1130Vector128<int> ievens = AdvSimd.ShiftLeftLogicalWideningLower(AdvSimd.Arm64.UnzipEven(merge_ab_and_bc, one.AsInt16()).GetLower(), 12);
src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64EncoderHelper.cs (2)
468Vector128<short> shiftBB = Vector128.Create(0x01000010).AsInt16(); 525Vector128<short> t3 = t2.AsInt16() * shiftBB;
src\libraries\System.Private.CoreLib\src\System\Guid.cs (1)
1434hexLow = Vector128.Shuffle(hexLow.AsInt16(), Vector128.Create(3, 2, 1, 0, 5, 4, 7, 6)).AsByte();
src\libraries\System.Private.CoreLib\src\System\SearchValues\IndexOfAnyAsciiSearcher.cs (4)
1408return Sse2.PackUnsignedSaturate(lower.AsInt16(), upper.AsInt16()); 1416return PackedSimd.ConvertNarrowingSaturateUnsigned(lower.AsInt16(), upper.AsInt16());
src\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticMap.cs (2)
227sourceLower = Sse2.PackUnsignedSaturate((source0 & Vector128.Create((ushort)255)).AsInt16(), (source1 & Vector128.Create((ushort)255)).AsInt16());
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\TeddyHelper.cs (2)
222return Sse2.PackUnsignedSaturate(source0.AsInt16(), source1.AsInt16());
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.CaseConversion.cs (2)
513return Vector128.LessThan(left.AsInt16(), right.AsInt16()).As<short, T>();
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (6)
1275Vector128<short> vecWide = Sse2.X64.ConvertScalarToVector128UInt64(value).AsInt16(); 1284Vector128<short> vecWide = Vector128.CreateScalarUnsafe(value).AsInt16(); 1674return Sse2.PackUnsignedSaturate(vectorFirst.AsInt16(), vectorSecond.AsInt16()); 1682return PackedSimd.ConvertNarrowingSaturateUnsigned(vectorFirst.AsInt16(), vectorSecond.AsInt16());
src\libraries\System.Private.CoreLib\src\System\Text\Latin1Utility.Helpers.cs (1)
58Vector128<short> vecWide = Sse2.X64.ConvertScalarToVector128UInt64(value).AsInt16();
src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf16Utility.Validation.cs (2)
138mask = Vector128.LessThan((utf16Data + vectorA000).AsInt16(), vector7800.AsInt16()).AsByte().ExtractMostSignificantBits();
src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8Utility.Transcoding.cs (1)
1006utf16Data = Vector128.CreateScalarUnsafe(possibleNonAsciiQWord).AsInt16();