96 references to As
System.Private.CoreLib (96)
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector.cs (70)
173return All(vector.As<T, int>(), -1); 177return All(vector.As<T, long>(), -1); 205return Any(vector.As<T, int>(), -1); 209return Any(vector.As<T, long>(), -1); 239public static Vector<byte> AsVectorByte<T>(Vector<T> value) => value.As<T, byte>(); 247public static Vector<double> AsVectorDouble<T>(Vector<T> value) => value.As<T, double>(); 255public static Vector<short> AsVectorInt16<T>(Vector<T> value) => value.As<T, short>(); 263public static Vector<int> AsVectorInt32<T>(Vector<T> value) => value.As<T, int>(); 271public static Vector<long> AsVectorInt64<T>(Vector<T> value) => value.As<T, long>(); 279public static Vector<nint> AsVectorNInt<T>(Vector<T> value) => value.As<T, nint>(); 288public static Vector<nuint> AsVectorNUInt<T>(Vector<T> value) => value.As<T, nuint>(); 297public static Vector<sbyte> AsVectorSByte<T>(Vector<T> value) => value.As<T, sbyte>(); 305public static Vector<float> AsVectorSingle<T>(Vector<T> value) => value.As<T, float>(); 314public static Vector<ushort> AsVectorUInt16<T>(Vector<T> value) => value.As<T, ushort>(); 323public static Vector<uint> AsVectorUInt32<T>(Vector<T> value) => value.As<T, uint>(); 332public static Vector<ulong> AsVectorUInt64<T>(Vector<T> value) => value.As<T, ulong>(); 456public static Vector<float> ConditionalSelect(Vector<int> condition, Vector<float> left, Vector<float> right) => ConditionalSelect(condition.As<int, float>(), left, right); 465public static Vector<double> ConditionalSelect(Vector<long> condition, Vector<double> left, Vector<double> right) => ConditionalSelect(condition.As<long, double>(), left, right); 794return Count(vector.As<T, int>(), -1); 798return Count(vector.As<T, long>(), -1); 974public static Vector<long> Equals(Vector<double> left, Vector<double> right) => Equals<double>(left, right).As<double, long>(); 995public static Vector<int> Equals(Vector<float> left, Vector<float> right) => Equals<float>(left, right).As<float, int>(); 1231public static Vector<long> GreaterThan(Vector<double> left, Vector<double> right) => GreaterThan<double>(left, right).As<double, long>(); 1252public static Vector<int> GreaterThan(Vector<float> left, Vector<float> right) => GreaterThan<float>(left, right).As<float, int>(); 1319public static Vector<long> GreaterThanOrEqual(Vector<double> left, Vector<double> right) => GreaterThanOrEqual<double>(left, right).As<double, long>(); 1340public static Vector<int> GreaterThanOrEqual(Vector<float> left, Vector<float> right) => GreaterThanOrEqual<float>(left, right).As<float, int>(); 1451return IndexOf(vector.As<T, int>(), -1); 1455return IndexOf(vector.As<T, long>(), -1); 1470return VectorMath.IsEvenIntegerSingle<Vector<float>, Vector<uint>>(vector.As<T, float>()).As<float, T>(); 1474return VectorMath.IsEvenIntegerDouble<Vector<double>, Vector<ulong>>(vector.As<T, double>()).As<double, T>(); 1486return ~IsZero(AndNot(Vector<float>.PositiveInfinity.As<float, uint>(), vector.As<T, uint>())).As<uint, T>(); 1490return ~IsZero(AndNot(Vector<double>.PositiveInfinity.As<double, ulong>(), vector.As<T, ulong>())).As<ulong, T>(); 1546return LessThan(vector.As<T, int>(), Vector<int>.Zero).As<int, T>(); 1550return LessThan(vector.As<T, long>(), Vector<long>.Zero).As<long, T>(); 1565return Equals(vector, Vector<float>.NegativeInfinity.As<float, T>()); 1569return Equals(vector, Vector<double>.NegativeInfinity.As<double, T>()); 1581return LessThan(Abs(vector).As<T, uint>() - Create<uint>(float.SmallestNormalBits), Create<uint>(float.PositiveInfinityBits - float.SmallestNormalBits)).As<uint, T>(); 1585return LessThan(Abs(vector).As<T, ulong>() - Create<ulong>(double.SmallestNormalBits), Create<ulong>(double.PositiveInfinityBits - double.SmallestNormalBits)).As<ulong, T>(); 1597return VectorMath.IsOddIntegerSingle<Vector<float>, Vector<uint>>(vector.As<T, float>()).As<float, T>(); 1601return VectorMath.IsOddIntegerDouble<Vector<double>, Vector<ulong>>(vector.As<T, double>()).As<double, T>(); 1621return GreaterThanOrEqual(vector.As<T, int>(), Vector<int>.Zero).As<int, T>(); 1625return GreaterThanOrEqual(vector.As<T, long>(), Vector<long>.Zero).As<long, T>(); 1640return Equals(vector, Vector<float>.PositiveInfinity.As<float, T>()); 1644return Equals(vector, Vector<double>.PositiveInfinity.As<double, T>()); 1656return LessThan(Abs(vector).As<T, uint>() - Vector<uint>.One, Create<uint>(float.MaxTrailingSignificand)).As<uint, T>(); 1660return LessThan(Abs(vector).As<T, ulong>() - Vector<ulong>.One, Create<ulong>(double.MaxTrailingSignificand)).As<ulong, T>(); 1697return LastIndexOf(vector.As<T, int>(), -1); 1701return LastIndexOf(vector.As<T, long>(), -1); 1786public static Vector<long> LessThan(Vector<double> left, Vector<double> right) => LessThan<double>(left, right).As<double, long>(); 1807public static Vector<int> LessThan(Vector<float> left, Vector<float> right) => LessThan<float>(left, right).As<float, int>(); 1874public static Vector<long> LessThanOrEqual(Vector<double> left, Vector<double> right) => LessThanOrEqual<double>(left, right).As<double, long>(); 1895public static Vector<int> LessThanOrEqual(Vector<float> left, Vector<float> right) => LessThanOrEqual<float>(left, right).As<float, int>(); 2548return None(vector.As<T, int>(), -1); 2552return None(vector.As<T, long>(), -1);
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector_1.cs (26)
250Vector<ulong> vleft = left.As<T, ulong>(); 251Vector<ulong> vright = right.As<T, ulong>(); 259return result.As<ulong, T>(); 273Vector<ulong> vleft = left.As<T, ulong>(); 274Vector<ulong> vright = right.As<T, ulong>(); 282return result.As<ulong, T>(); 352Vector<ulong> vleft = left.As<T, ulong>(); 353Vector<ulong> vright = right.As<T, ulong>(); 361return result.As<ulong, T>(); 369public static explicit operator Vector<byte>(Vector<T> value) => value.As<T, byte>(); 376public static explicit operator Vector<double>(Vector<T> value) => value.As<T, double>(); 383public static explicit operator Vector<short>(Vector<T> value) => value.As<T, short>(); 390public static explicit operator Vector<int>(Vector<T> value) => value.As<T, int>(); 397public static explicit operator Vector<long>(Vector<T> value) => value.As<T, long>(); 404public static explicit operator Vector<nint>(Vector<T> value) => value.As<T, nint>(); 412public static explicit operator Vector<nuint>(Vector<T> value) => value.As<T, nuint>(); 420public static explicit operator Vector<sbyte>(Vector<T> value) => value.As<T, sbyte>(); 427public static explicit operator Vector<float>(Vector<T> value) => value.As<T, float>(); 435public static explicit operator Vector<ushort>(Vector<T> value) => value.As<T, ushort>(); 443public static explicit operator Vector<uint>(Vector<T> value) => value.As<T, uint>(); 451public static explicit operator Vector<ulong>(Vector<T> value) => value.As<T, ulong>(); 522Vector<ulong> vector = value.As<T, ulong>(); 530return result.As<ulong, T>(); 580return value ^ Vector<float>.NegativeZero.As<float, T>(); 584return value ^ Vector<double>.NegativeZero.As<double, T>(); 712return result.As<T, int>() == Vector<int>.AllBitsSet;