179 references to As
System.Numerics.Tensors (144)
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IBinaryOperator.cs (10)
2743x = TAggregate.Invoke(x, Vector128.Shuffle(x.AsByte(), Vector128.Create((byte)8, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7)).As<byte, T>()); 2744x = TAggregate.Invoke(x, Vector128.Shuffle(x.AsByte(), Vector128.Create((byte)4, 5, 6, 7, 0, 1, 2, 3, 8, 9, 10, 11, 12, 13, 14, 15)).As<byte, T>()); 2745x = TAggregate.Invoke(x, Vector128.Shuffle(x.AsByte(), Vector128.Create((byte)2, 3, 0, 1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)).As<byte, T>()); 2746x = TAggregate.Invoke(x, Vector128.Shuffle(x.AsByte(), Vector128.Create((byte)1, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)).As<byte, T>()); 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>()); 2756x = TAggregate.Invoke(x, Vector128.Shuffle(x.AsInt32(), Vector128.Create(2, 3, 0, 1)).As<int, T>()); 2757x = TAggregate.Invoke(x, Vector128.Shuffle(x.AsInt32(), Vector128.Create(1, 0, 3, 2)).As<int, T>()); 2762x = TAggregate.Invoke(x, Vector128.Shuffle(x.AsInt64(), Vector128.Create(1, 0)).As<long, T>());
System\Numerics\Tensors\netcore\Common\TensorPrimitives.IIndexOfOperator.cs (28)
30tmpResult = Vector128.Shuffle(result.AsInt64(), Vector128.Create(1, 0)).As<long, T>(); 31tmpIndex = Vector128.Shuffle(resultIndex.AsInt64(), Vector128.Create(1, 0)).As<long, T>(); 35return (int)resultIndex.As<T, long>().ToScalar(); 41tmpResult = Vector128.Shuffle(result.AsInt32(), Vector128.Create(2, 3, 0, 1)).As<int, T>(); 42tmpIndex = Vector128.Shuffle(resultIndex.AsInt32(), Vector128.Create(2, 3, 0, 1)).As<int, T>(); 46tmpResult = Vector128.Shuffle(result.AsInt32(), Vector128.Create(1, 0, 3, 2)).As<int, T>(); 47tmpIndex = Vector128.Shuffle(resultIndex.AsInt32(), Vector128.Create(1, 0, 3, 2)).As<int, T>(); 51return resultIndex.As<T, int>().ToScalar(); 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>(); 72return resultIndex.As<T, short>().ToScalar(); 78tmpResult = Vector128.Shuffle(result.AsByte(), Vector128.Create((byte)8, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7)).As<byte, T>(); 79tmpIndex = Vector128.Shuffle(resultIndex.AsByte(), Vector128.Create((byte)8, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7)).As<byte, T>(); 83tmpResult = Vector128.Shuffle(result.AsByte(), Vector128.Create((byte)4, 5, 6, 7, 0, 1, 2, 3, 8, 9, 10, 11, 12, 13, 14, 15)).As<byte, T>(); 84tmpIndex = Vector128.Shuffle(resultIndex.AsByte(), Vector128.Create((byte)4, 5, 6, 7, 0, 1, 2, 3, 8, 9, 10, 11, 12, 13, 14, 15)).As<byte, T>(); 88tmpResult = Vector128.Shuffle(result.AsByte(), Vector128.Create((byte)2, 3, 0, 1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)).As<byte, T>(); 89tmpIndex = Vector128.Shuffle(resultIndex.AsByte(), Vector128.Create((byte)2, 3, 0, 1, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)).As<byte, T>(); 93tmpResult = Vector128.Shuffle(result.AsByte(), Vector128.Create((byte)1, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)).As<byte, T>(); 94tmpIndex = Vector128.Shuffle(resultIndex.AsByte(), Vector128.Create((byte)1, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)).As<byte, T>(); 98return resultIndex.As<T, byte>().ToScalar(); 127sizeof(T) == sizeof(long) ? Vector128.LessThan(indices1.AsInt64(), indices2.AsInt64()).As<long, T>() : 128sizeof(T) == sizeof(int) ? Vector128.LessThan(indices1.AsInt32(), indices2.AsInt32()).As<int, T>() : 129sizeof(T) == sizeof(short) ? Vector128.LessThan(indices1.AsInt16(), indices2.AsInt16()).As<short, T>() : 130Vector128.LessThan(indices1.AsByte(), indices2.AsByte()).As<byte, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Cbrt.cs (2)
37return ExpOperator<float>.Invoke(LogOperator<float>.Invoke(x.AsSingle()) / Vector128.Create(3f)).As<float, T>(); 42return ExpOperator<double>.Invoke(LogOperator<double>.Invoke(x.AsDouble()) / Vector128.Create(3d)).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Ceiling.cs (2)
35return Vector128.Ceiling(x.AsSingle()).As<float, T>(); 40return Vector128.Ceiling(x.AsDouble()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertToInteger.cs (4)
44if (typeof(TTo) == typeof(int)) return Vector128.ConvertToInt32(x.AsSingle()).As<int, TTo>(); 45if (typeof(TTo) == typeof(uint)) return Vector128.ConvertToUInt32(x.AsSingle()).As<uint, TTo>(); 50if (typeof(TTo) == typeof(long)) return Vector128.ConvertToInt64(x.AsDouble()).As<long, TTo>(); 51if (typeof(TTo) == typeof(ulong)) return Vector128.ConvertToUInt64(x.AsDouble()).As<ulong, TTo>();
System\Numerics\Tensors\netcore\TensorPrimitives.ConvertToIntegerNative.cs (4)
44if (typeof(TTo) == typeof(int)) return Vector128.ConvertToInt32Native(x.AsSingle()).As<int, TTo>(); 45if (typeof(TTo) == typeof(uint)) return Vector128.ConvertToUInt32Native(x.AsSingle()).As<uint, TTo>(); 50if (typeof(TTo) == typeof(long)) return Vector128.ConvertToInt64Native(x.AsDouble()).As<long, TTo>(); 51if (typeof(TTo) == typeof(ulong)) return Vector128.ConvertToUInt64Native(x.AsDouble()).As<ulong, TTo>();
System\Numerics\Tensors\netcore\TensorPrimitives.Cos.cs (2)
73return Vector128.Cos(x.AsDouble()).As<double, T>(); 78return Vector128.Cos(x.AsSingle()).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Cosh.cs (2)
81return (Vector128.Create((float)Single_HALFV) * (z + (Vector128.Create((float)Single_INVV2) / z))).As<float, T>(); 90return (Vector128.Create(Double_HALFV) * (z + (Vector128.Create(Double_INVV2) / z))).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.CosPi.cs (2)
49return ApplyScalar<CosPiOperator<float>>(x.AsSingle()).As<float, T>(); 57return ApplyScalar<CosPiOperator<double>>(x.AsDouble()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.DegreesToRadians.cs (2)
37return Vector128.DegreesToRadians(x.AsDouble()).As<double, T>(); 42return Vector128.DegreesToRadians(x.AsSingle()).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Exp.cs (2)
47return Vector128.Exp(x.AsDouble()).As<double, T>(); 52return Vector128.Exp(x.AsSingle()).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Floor.cs (2)
35return Vector128.Floor(x.AsSingle()).As<float, T>(); 40return Vector128.Floor(x.AsDouble()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.FusedMultiplyAdd.cs (2)
106return Vector128.FusedMultiplyAdd(x.AsDouble(), y.AsDouble(), z.AsDouble()).As<double, T>(); 111return Vector128.FusedMultiplyAdd(x.AsSingle(), y.AsSingle(), z.AsSingle()).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Hypot.cs (2)
41return Vector128.Hypot(x.AsDouble(), y.AsDouble()).As<double, T>(); 46return Vector128.Hypot(x.AsSingle(), y.AsSingle()).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMax.cs (17)
47Vector128<T> sameSign = Vector128.Equals(IsNegative(result).AsInt32(), currentNegative.AsInt32()).As<int, T>(); 336sizeof(T) == sizeof(long) ? Vector128.Create((long)i).As<long, T>() : 337sizeof(T) == sizeof(int) ? Vector128.Create(i).As<int, T>() : 338sizeof(T) == sizeof(short) ? Vector128.Create((short)i).As<short, T>() : 339Vector128.Create((byte)i).As<byte, T>(); 344sizeof(T) == sizeof(long) ? Vector128<long>.Indices.As<long, T>() : 345sizeof(T) == sizeof(int) ? Vector128<int>.Indices.As<int, T>() : 346sizeof(T) == sizeof(short) ? Vector128<short>.Indices.As<short, T>() : 347Vector128<byte>.Indices.As<byte, T>(); 409(int)(long)(object)currentIndex.As<T, long>()[indexInVectorOfFirstMatch] : 410(int)(object)currentIndex.As<T, int>()[indexInVectorOfFirstMatch]; 474if (typeof(T) == typeof(float)) return Sse41.BlendVariable(left.AsSingle(), right.AsSingle(), (~mask).AsSingle()).As<float, T>(); 475if (typeof(T) == typeof(double)) return Sse41.BlendVariable(left.AsDouble(), right.AsDouble(), (~mask).AsDouble()).As<double, T>(); 477if (sizeof(T) == 1) return Sse41.BlendVariable(left.AsByte(), right.AsByte(), (~mask).AsByte()).As<byte, T>(); 478if (sizeof(T) == 2) return Sse41.BlendVariable(left.AsUInt16(), right.AsUInt16(), (~mask).AsUInt16()).As<ushort, T>(); 479if (sizeof(T) == 4) return Sse41.BlendVariable(left.AsUInt32(), right.AsUInt32(), (~mask).AsUInt32()).As<uint, T>(); 480if (sizeof(T) == 8) return Sse41.BlendVariable(left.AsUInt64(), right.AsUInt64(), (~mask).AsUInt64()).As<ulong, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMaxMagnitude.cs (1)
45Vector128<T> sameSign = Vector128.Equals(IsNegative(result).AsInt32(), currentNegative.AsInt32()).As<int, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMin.cs (1)
44Vector128<T> sameSign = Vector128.Equals(resultNegative.AsInt32(), IsNegative(current).AsInt32()).As<int, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.IndexOfMinMagnitude.cs (1)
45Vector128<T> sameSign = Vector128.Equals(resultNegative.AsInt32(), IsNegative(current).AsInt32()).As<int, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.LeadingZeroCount.cs (7)
53return Avx512Vbmi.VL.PermuteVar16x8x2(lookupVectorLow, indexVector, lookupVectorHigh).As<byte, T>(); 66return Sse2.Or(lz_bot16, lz_top16_shift).AsUInt16().As<ushort, T>(); 71return Avx512CD.VL.LeadingZeroCount(x.AsUInt32()).As<uint, T>(); 76return Avx512CD.VL.LeadingZeroCount(x.AsUInt64()).As<ulong, T>(); 82if (sizeof(T) == 1) return AdvSimd.LeadingZeroCount(x.AsByte()).As<byte, T>(); 83if (sizeof(T) == 2) return AdvSimd.LeadingZeroCount(x.AsUInt16()).As<ushort, T>(); 86return AdvSimd.LeadingZeroCount(x.AsUInt32()).As<uint, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Lerp.cs (2)
85return Vector128.Lerp(x.AsDouble(), y.AsDouble(), amount.AsDouble()).As<double, T>(); 90return Vector128.Lerp(x.AsSingle(), y.AsSingle(), amount.AsSingle()).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Log.cs (2)
89return Vector128.Log(x.AsDouble()).As<double, T>(); 94return Vector128.Log(x.AsSingle()).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Log2.cs (2)
49return Vector128.Log2(x.AsDouble()).As<double, T>(); 54return Vector128.Log2(x.AsSingle()).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.MultiplyAddEstimate.cs (2)
129return Vector128.MultiplyAddEstimate(x.AsDouble(), y.AsDouble(), z.AsDouble()).As<double, T>(); 133return Vector128.MultiplyAddEstimate(x.AsSingle(), y.AsSingle(), z.AsSingle()).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.PopCount.cs (8)
66return cnt.As<byte, T>(); 71return AdvSimd.AddPairwiseWidening(cnt).As<ushort, T>(); 76return AdvSimd.AddPairwiseWidening(AdvSimd.AddPairwiseWidening(cnt)).As<uint, T>(); 81return AdvSimd.AddPairwiseWidening(AdvSimd.AddPairwiseWidening(AdvSimd.AddPairwiseWidening(cnt))).As<ulong, T>(); 89return PackedSimd.PopCount(x.AsByte()).As<byte, T>(); 103return ((tmp + (tmp.AsUInt16() >> 4).AsByte()) & c3).As<byte, T>(); 117return tmp.As<ushort, T>(); 131return tmp.As<uint, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Pow.cs (2)
70return ExpOperator<float>.Invoke(y.AsSingle() * LogOperator<float>.Invoke(x.AsSingle())).As<float, T>(); 75return ExpOperator<double>.Invoke(y.AsDouble() * LogOperator<double>.Invoke(x.AsDouble())).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.RadiansToDegrees.cs (2)
37return Vector128.RadiansToDegrees(x.AsDouble()).As<double, T>(); 42return Vector128.RadiansToDegrees(x.AsSingle()).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Reciprocal.cs (10)
101if (typeof(T) == typeof(float)) return Avx512F.VL.Reciprocal14(x.AsSingle()).As<float, T>(); 102if (typeof(T) == typeof(double)) return Avx512F.VL.Reciprocal14(x.AsDouble()).As<double, T>(); 108if (typeof(T) == typeof(float)) return Sse.Reciprocal(x.AsSingle()).As<float, T>(); 113if (typeof(T) == typeof(float)) return AdvSimd.ReciprocalEstimate(x.AsSingle()).As<float, T>(); 118if (typeof(T) == typeof(double)) return AdvSimd.Arm64.ReciprocalEstimate(x.AsDouble()).As<double, T>(); 167if (typeof(T) == typeof(float)) return Avx512F.VL.ReciprocalSqrt14(x.AsSingle()).As<float, T>(); 168if (typeof(T) == typeof(double)) return Avx512F.VL.ReciprocalSqrt14(x.AsDouble()).As<double, T>(); 174if (typeof(T) == typeof(float)) return Sse.ReciprocalSqrt(x.AsSingle()).As<float, T>(); 179if (typeof(T) == typeof(float)) return AdvSimd.ReciprocalSquareRootEstimate(x.AsSingle()).As<float, T>(); 184if (typeof(T) == typeof(double)) return AdvSimd.Arm64.ReciprocalSquareRootEstimate(x.AsDouble()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Remainder.cs (2)
77typeof(T) == typeof(float) ? x - (TruncateOperator<float>.Invoke((x / y).AsSingle()).As<float, T>() * y) : 78typeof(T) == typeof(double) ? x - (TruncateOperator<double>.Invoke((x / y).AsDouble()).As<double, T>() * y) :
System\Numerics\Tensors\netcore\TensorPrimitives.Round.cs (6)
184return Vector128.Round(x.AsDouble()).As<double, T>(); 189return Vector128.Round(x.AsSingle()).As<float, T>(); 250return AdvSimd.RoundAwayFromZero(x.AsSingle()).As<float, T>(); 253return TruncateOperator<float>.Invoke(x.AsSingle() + CopySignOperator<float>.Invoke(Vector128.Create(0.49999997f), x.AsSingle())).As<float, T>(); 259return AdvSimd.Arm64.RoundAwayFromZero(x.AsDouble()).As<double, T>(); 263return TruncateOperator<double>.Invoke(x.AsDouble() + CopySignOperator<double>.Invoke(Vector128.Create(0.49999999999999994), x.AsDouble())).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Sin.cs (2)
63return Vector128.Sin(x.AsDouble()).As<double, T>(); 68return Vector128.Sin(x.AsSingle()).As<float, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Sinh.cs (2)
65return (sign ^ result.AsUInt32()).As<uint, T>(); 76return (sign ^ result.AsUInt64()).As<ulong, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.SinPi.cs (2)
49return ApplyScalar<SinPiOperator<float>>(x.AsSingle()).As<float, T>(); 57return ApplyScalar<SinPiOperator<double>>(x.AsDouble()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Tan.cs (2)
65return TanOperatorSingle.Invoke(x.AsSingle()).As<float, T>(); 70return TanOperatorDouble.Invoke(x.AsDouble()).As<double, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Tanh.cs (2)
72return (sign ^ (-z / (z + Vector128.Create(2f))).AsUInt32()).As<uint, T>(); 81return (sign ^ (-z / (z + Vector128.Create(2d))).AsUInt64()).As<ulong, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.TrailingZeroCount.cs (1)
41return AdvSimd.LeadingZeroCount(AdvSimd.Arm64.ReverseElementBits(x.AsByte())).As<byte, T>();
System\Numerics\Tensors\netcore\TensorPrimitives.Truncate.cs (2)
38return Vector128.Truncate(x.AsDouble()).As<double, T>(); 43return Vector128.Truncate(x.AsSingle()).As<float, T>();
System.Private.CoreLib (35)
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (30)
170public static Vector128<byte> AsByte<T>(this Vector128<T> vector) => vector.As<T, byte>(); 178public static Vector128<double> AsDouble<T>(this Vector128<T> vector) => vector.As<T, double>(); 186public static Vector128<short> AsInt16<T>(this Vector128<T> vector) => vector.As<T, short>(); 194public static Vector128<int> AsInt32<T>(this Vector128<T> vector) => vector.As<T, int>(); 202public static Vector128<long> AsInt64<T>(this Vector128<T> vector) => vector.As<T, long>(); 210public static Vector128<nint> AsNInt<T>(this Vector128<T> vector) => vector.As<T, nint>(); 219public static Vector128<nuint> AsNUInt<T>(this Vector128<T> vector) => vector.As<T, nuint>(); 228public static Vector128<sbyte> AsSByte<T>(this Vector128<T> vector) => vector.As<T, sbyte>(); 236public static Vector128<float> AsSingle<T>(this Vector128<T> vector) => vector.As<T, float>(); 245public static Vector128<ushort> AsUInt16<T>(this Vector128<T> vector) => vector.As<T, ushort>(); 254public static Vector128<uint> AsUInt32<T>(this Vector128<T> vector) => vector.As<T, uint>(); 263public static Vector128<ulong> AsUInt64<T>(this Vector128<T> vector) => vector.As<T, ulong>(); 1859return VectorMath.IsEvenIntegerSingle<Vector128<float>, Vector128<uint>>(vector.AsSingle()).As<float, T>(); 1863return VectorMath.IsEvenIntegerDouble<Vector128<double>, Vector128<ulong>>(vector.AsDouble()).As<double, T>(); 1875return ~IsZero(AndNot(Create<uint>(float.PositiveInfinityBits), vector.AsUInt32())).As<uint, T>(); 1879return ~IsZero(AndNot(Create<ulong>(double.PositiveInfinityBits), vector.AsUInt64())).As<ulong, T>(); 1935return LessThan(vector.AsInt32(), Vector128<int>.Zero).As<int, T>(); 1939return LessThan(vector.AsInt64(), Vector128<long>.Zero).As<long, T>(); 1954return Equals(vector, Create(float.NegativeInfinity).As<float, T>()); 1958return Equals(vector, Create(double.NegativeInfinity).As<double, T>()); 1970return LessThan(Abs(vector).AsUInt32() - Create<uint>(float.SmallestNormalBits), Create<uint>(float.PositiveInfinityBits - float.SmallestNormalBits)).As<uint, T>(); 1974return LessThan(Abs(vector).AsUInt64() - Create<ulong>(double.SmallestNormalBits), Create<ulong>(double.PositiveInfinityBits - double.SmallestNormalBits)).As<ulong, T>(); 1986return VectorMath.IsOddIntegerSingle<Vector128<float>, Vector128<uint>>(vector.AsSingle()).As<float, T>(); 1990return VectorMath.IsOddIntegerDouble<Vector128<double>, Vector128<ulong>>(vector.AsDouble()).As<double, T>(); 2010return GreaterThanOrEqual(vector.AsInt32(), Vector128<int>.Zero).As<int, T>(); 2014return GreaterThanOrEqual(vector.AsInt64(), Vector128<long>.Zero).As<long, T>(); 2029return Equals(vector, Create(float.PositiveInfinity).As<float, T>()); 2033return Equals(vector, Create(double.PositiveInfinity).As<double, T>()); 2045return LessThan(Abs(vector).AsUInt32() - Vector128<uint>.One, Create<uint>(float.MaxTrailingSignificand)).As<uint, T>(); 2049return LessThan(Abs(vector).AsUInt64() - Vector128<ulong>.One, Create<ulong>(double.MaxTrailingSignificand)).As<ulong, T>();
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128_1.cs (2)
345return vector ^ Vector128.Create(-0.0f).As<float, T>(); 349return vector ^ Vector128.Create(-0.0).As<double, T>();
src\libraries\System.Private.CoreLib\src\System\Text\Ascii.CaseConversion.cs (3)
474Vector128.StoreUnsafe(vector.As<TFrom, TTo>(), ref *pDest, elementOffset); 509return Vector128.LessThan(left.AsSByte(), right.AsSByte()).As<sbyte, T>(); 513return Vector128.LessThan(left.AsInt16(), right.AsInt16()).As<short, T>();