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