96 references to As
System.Private.CoreLib (96)
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector.cs (70)
174return All(vector.As<T, int>(), -1); 178return All(vector.As<T, long>(), -1); 206return Any(vector.As<T, int>(), -1); 210return Any(vector.As<T, long>(), -1); 240public static Vector<byte> AsVectorByte<T>(Vector<T> value) => value.As<T, byte>(); 248public static Vector<double> AsVectorDouble<T>(Vector<T> value) => value.As<T, double>(); 256public static Vector<short> AsVectorInt16<T>(Vector<T> value) => value.As<T, short>(); 264public static Vector<int> AsVectorInt32<T>(Vector<T> value) => value.As<T, int>(); 272public static Vector<long> AsVectorInt64<T>(Vector<T> value) => value.As<T, long>(); 280public static Vector<nint> AsVectorNInt<T>(Vector<T> value) => value.As<T, nint>(); 289public static Vector<nuint> AsVectorNUInt<T>(Vector<T> value) => value.As<T, nuint>(); 298public static Vector<sbyte> AsVectorSByte<T>(Vector<T> value) => value.As<T, sbyte>(); 306public static Vector<float> AsVectorSingle<T>(Vector<T> value) => value.As<T, float>(); 315public static Vector<ushort> AsVectorUInt16<T>(Vector<T> value) => value.As<T, ushort>(); 324public static Vector<uint> AsVectorUInt32<T>(Vector<T> value) => value.As<T, uint>(); 333public static Vector<ulong> AsVectorUInt64<T>(Vector<T> value) => value.As<T, ulong>(); 457public static Vector<float> ConditionalSelect(Vector<int> condition, Vector<float> left, Vector<float> right) => ConditionalSelect(condition.As<int, float>(), left, right); 466public static Vector<double> ConditionalSelect(Vector<long> condition, Vector<double> left, Vector<double> right) => ConditionalSelect(condition.As<long, double>(), left, right); 795return Count(vector.As<T, int>(), -1); 799return Count(vector.As<T, long>(), -1); 975public static Vector<long> Equals(Vector<double> left, Vector<double> right) => Equals<double>(left, right).As<double, long>(); 996public static Vector<int> Equals(Vector<float> left, Vector<float> right) => Equals<float>(left, right).As<float, int>(); 1232public static Vector<long> GreaterThan(Vector<double> left, Vector<double> right) => GreaterThan<double>(left, right).As<double, long>(); 1253public static Vector<int> GreaterThan(Vector<float> left, Vector<float> right) => GreaterThan<float>(left, right).As<float, int>(); 1320public static Vector<long> GreaterThanOrEqual(Vector<double> left, Vector<double> right) => GreaterThanOrEqual<double>(left, right).As<double, long>(); 1341public static Vector<int> GreaterThanOrEqual(Vector<float> left, Vector<float> right) => GreaterThanOrEqual<float>(left, right).As<float, int>(); 1452return IndexOf(vector.As<T, int>(), -1); 1456return IndexOf(vector.As<T, long>(), -1); 1471return VectorMath.IsEvenIntegerSingle<Vector<float>, Vector<uint>>(vector.As<T, float>()).As<float, T>(); 1475return VectorMath.IsEvenIntegerDouble<Vector<double>, Vector<ulong>>(vector.As<T, double>()).As<double, T>(); 1487return ~IsZero(AndNot(Vector<float>.PositiveInfinity.As<float, uint>(), vector.As<T, uint>())).As<uint, T>(); 1491return ~IsZero(AndNot(Vector<double>.PositiveInfinity.As<double, ulong>(), vector.As<T, ulong>())).As<ulong, T>(); 1547return LessThan(vector.As<T, int>(), Vector<int>.Zero).As<int, T>(); 1551return LessThan(vector.As<T, long>(), Vector<long>.Zero).As<long, T>(); 1566return Equals(vector, Vector<float>.NegativeInfinity.As<float, T>()); 1570return Equals(vector, Vector<double>.NegativeInfinity.As<double, T>()); 1582return LessThan(Abs(vector).As<T, uint>() - Create<uint>(float.SmallestNormalBits), Create<uint>(float.PositiveInfinityBits - float.SmallestNormalBits)).As<uint, T>(); 1586return LessThan(Abs(vector).As<T, ulong>() - Create<ulong>(double.SmallestNormalBits), Create<ulong>(double.PositiveInfinityBits - double.SmallestNormalBits)).As<ulong, T>(); 1598return VectorMath.IsOddIntegerSingle<Vector<float>, Vector<uint>>(vector.As<T, float>()).As<float, T>(); 1602return VectorMath.IsOddIntegerDouble<Vector<double>, Vector<ulong>>(vector.As<T, double>()).As<double, T>(); 1622return GreaterThanOrEqual(vector.As<T, int>(), Vector<int>.Zero).As<int, T>(); 1626return GreaterThanOrEqual(vector.As<T, long>(), Vector<long>.Zero).As<long, T>(); 1641return Equals(vector, Vector<float>.PositiveInfinity.As<float, T>()); 1645return Equals(vector, Vector<double>.PositiveInfinity.As<double, T>()); 1657return LessThan(Abs(vector).As<T, uint>() - Vector<uint>.One, Create<uint>(float.MaxTrailingSignificand)).As<uint, T>(); 1661return LessThan(Abs(vector).As<T, ulong>() - Vector<ulong>.One, Create<ulong>(double.MaxTrailingSignificand)).As<ulong, T>(); 1698return LastIndexOf(vector.As<T, int>(), -1); 1702return LastIndexOf(vector.As<T, long>(), -1); 1787public static Vector<long> LessThan(Vector<double> left, Vector<double> right) => LessThan<double>(left, right).As<double, long>(); 1808public static Vector<int> LessThan(Vector<float> left, Vector<float> right) => LessThan<float>(left, right).As<float, int>(); 1875public static Vector<long> LessThanOrEqual(Vector<double> left, Vector<double> right) => LessThanOrEqual<double>(left, right).As<double, long>(); 1896public static Vector<int> LessThanOrEqual(Vector<float> left, Vector<float> right) => LessThanOrEqual<float>(left, right).As<float, int>(); 2552return None(vector.As<T, int>(), -1); 2556return 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;