59 references to AsInt16
System.IO.Hashing (2)
System\IO\Hashing\Adler32.cs (2)
335(Vector128<int> pLo1, Vector128<int> pHi1) = Vector128.Widen(dLo.AsInt16() * wLo); 336(Vector128<int> pLo2, Vector128<int> pHi2) = Vector128.Widen(dHi.AsInt16() * wHi);
System.Numerics.Tensors (12)
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.IIndexOfMinMaxOperator.cs (3)
206(Vector128<int> mask1, Vector128<int> mask2) = Vector128.Widen(mask.AsInt16()); 219Vector128<short> aggMask = ~Vector128.Equals(result.AsInt16(), Vector128.Create(aggResult).AsInt16());
System\Numerics\Tensors\netcore\TensorPrimitives.BitDecrement.cs (1)
232return Vector128.ConditionalSelect(specialMask, specialValue, result).AsInt16();
System\Numerics\Tensors\netcore\TensorPrimitives.BitIncrement.cs (1)
232return Vector128.ConditionalSelect(specialMask, specialValue, result).AsInt16();
System\Numerics\Tensors\netcore\TensorPrimitives.Half.cs (4)
324TUnary.Invoke(xVecUpper)).AsInt16(); 361TBinary.Invoke(xVecUpper, yVecUpper)).AsInt16(); 400TAggregate.Invoke(xVecUpper, yVecUpper)).AsInt16(); 467TTernary.Invoke(xVecUpper, yVecUpper, zVecUpper)).AsInt16();
System.Private.CoreLib (45)
src\runtime\src\libraries\Common\src\System\HexConverter.cs (3)
398Vector128<short> even = AdvSimd.Arm64.TransposeEven(nibbles, Vector128<byte>.Zero).AsInt16(); 399Vector128<short> odd = AdvSimd.Arm64.TransposeOdd(nibbles, Vector128<byte>.Zero).AsInt16(); 401even = (even << 4).AsInt16();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64DecoderHelper.cs (4)
1258Vector128<short> mergeConstant1 = Vector128.Create(0x00011000).AsInt16(); 1297merge_ab_and_bc = Vector128.Add(evens, odds).AsInt16(); 1305merge_ab_and_bc = (evens + odds).AsInt16(); 1325Vector128<int> ievens = AdvSimd.ShiftLeftLogicalWideningLower(AdvSimd.Arm64.UnzipEven(merge_ab_and_bc, one.AsInt16()).GetLower(), 12);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Buffers\Text\Base64Helper\Base64EncoderHelper.cs (2)
463Vector128<short> shiftBB = Vector128.Create(0x01000010).AsInt16(); 527Vector128<short> t3 = t2.AsInt16() * shiftBB;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Guid.cs (1)
1536hexLow = Vector128.Shuffle(hexLow.AsInt16(), Vector128.Create(3, 2, 1, 0, 5, 4, 7, 6)).AsByte();
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.MinMax.cs (3)
331x = TMinMax.Compare(x, Vector128.Shuffle(x.AsInt16(), 333x = TMinMax.Compare(x, Vector128.Shuffle(x.AsInt16(), 335x = TMinMax.Compare(x, Vector128.Shuffle(x.AsInt16(),
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\IndexOfAnyAsciiSearcher.cs (6)
1393Vector128<short> lowerMin = Vector128.Min(lower, Vector128.Create((ushort)255)).AsInt16(); 1394Vector128<short> upperMin = Vector128.Min(upper, Vector128.Create((ushort)255)).AsInt16(); 1433return Sse2.PackUnsignedSaturate(lower.AsInt16(), upper.AsInt16()); 1441return PackedSimd.ConvertNarrowingSaturateUnsigned(lower.AsInt16(), upper.AsInt16());
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticMap.cs (8)
234sourceLower = Sse2.PackUnsignedSaturate((source0 & Vector128.Create((ushort)255)).AsInt16(), (source1 & Vector128.Create((ushort)255)).AsInt16()); 235sourceUpper = Sse2.PackUnsignedSaturate((source0 >>> 8).AsInt16(), (source1 >>> 8).AsInt16()); 244sourceLower = PackedSimd.ConvertNarrowingSaturateUnsigned((source0 & Vector128.Create((ushort)255)).AsInt16(), (source1 & Vector128.Create((ushort)255)).AsInt16()); 245sourceUpper = PackedSimd.ConvertNarrowingSaturateUnsigned((source0 >>> 8).AsInt16(), (source1 >>> 8).AsInt16());
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\TeddyHelper.cs (4)
230return Sse2.PackUnsignedSaturate(source0.AsInt16(), source1.AsInt16()); 238return PackedSimd.ConvertNarrowingSaturateUnsigned(source0.AsInt16(), source1.AsInt16());
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\SingleStringSearchValuesPackedThreeChars.cs (2)
399? Sse2.PackUnsignedSaturate(input0.AsInt16(), input1.AsInt16())
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (2)
2336var packed = PackedSpanHelpers.PackSources(vector1.AsInt16(), vector2.AsInt16());
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Ascii.CaseConversion.cs (2)
514return Vector128.LessThan(left.AsInt16(), right.AsInt16()).As<short, T>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Ascii.Utility.cs (6)
1279Vector128<short> vecWide = Sse2.X64.ConvertScalarToVector128UInt64(value).AsInt16(); 1288Vector128<short> vecWide = Vector128.CreateScalarUnsafe(value).AsInt16(); 1679return Sse2.PackUnsignedSaturate(vectorFirst.AsInt16(), vectorSecond.AsInt16()); 1687return PackedSimd.ConvertNarrowingSaturateUnsigned(vectorFirst.AsInt16(), vectorSecond.AsInt16());
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Latin1Utility.Helpers.cs (1)
58Vector128<short> vecWide = Sse2.X64.ConvertScalarToVector128UInt64(value).AsInt16();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8Utility.Transcoding.cs (1)
1019utf16Data = Vector128.CreateScalarUnsafe(possibleNonAsciiQWord).AsInt16();