96 references to As
System.Private.CoreLib (96)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector_1.cs (26)
239Vector<ulong> vleft = left.As<T, ulong>(); 240Vector<ulong> vright = right.As<T, ulong>(); 248return result.As<ulong, T>(); 262Vector<ulong> vleft = left.As<T, ulong>(); 263Vector<ulong> vright = right.As<T, ulong>(); 271return result.As<ulong, T>(); 341Vector<ulong> vleft = left.As<T, ulong>(); 342Vector<ulong> vright = right.As<T, ulong>(); 350return result.As<ulong, T>(); 358public static explicit operator Vector<byte>(Vector<T> value) => value.As<T, byte>(); 365public static explicit operator Vector<double>(Vector<T> value) => value.As<T, double>(); 372public static explicit operator Vector<short>(Vector<T> value) => value.As<T, short>(); 379public static explicit operator Vector<int>(Vector<T> value) => value.As<T, int>(); 386public static explicit operator Vector<long>(Vector<T> value) => value.As<T, long>(); 393public static explicit operator Vector<nint>(Vector<T> value) => value.As<T, nint>(); 401public static explicit operator Vector<nuint>(Vector<T> value) => value.As<T, nuint>(); 409public static explicit operator Vector<sbyte>(Vector<T> value) => value.As<T, sbyte>(); 416public static explicit operator Vector<float>(Vector<T> value) => value.As<T, float>(); 424public static explicit operator Vector<ushort>(Vector<T> value) => value.As<T, ushort>(); 432public static explicit operator Vector<uint>(Vector<T> value) => value.As<T, uint>(); 440public static explicit operator Vector<ulong>(Vector<T> value) => value.As<T, ulong>(); 511Vector<ulong> vector = value.As<T, ulong>(); 519return result.As<ulong, T>(); 569return value ^ Vector<float>.NegativeZero.As<float, T>(); 573return value ^ Vector<double>.NegativeZero.As<double, T>(); 701return result.As<T, int>() == Vector<int>.AllBitsSet;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector.cs (70)
178return All(vector.As<T, int>(), -1); 182return All(vector.As<T, long>(), -1); 210return Any(vector.As<T, int>(), -1); 214return Any(vector.As<T, long>(), -1); 244public static Vector<byte> AsVectorByte<T>(Vector<T> value) => value.As<T, byte>(); 252public static Vector<double> AsVectorDouble<T>(Vector<T> value) => value.As<T, double>(); 260public static Vector<short> AsVectorInt16<T>(Vector<T> value) => value.As<T, short>(); 268public static Vector<int> AsVectorInt32<T>(Vector<T> value) => value.As<T, int>(); 276public static Vector<long> AsVectorInt64<T>(Vector<T> value) => value.As<T, long>(); 284public static Vector<nint> AsVectorNInt<T>(Vector<T> value) => value.As<T, nint>(); 293public static Vector<nuint> AsVectorNUInt<T>(Vector<T> value) => value.As<T, nuint>(); 302public static Vector<sbyte> AsVectorSByte<T>(Vector<T> value) => value.As<T, sbyte>(); 310public static Vector<float> AsVectorSingle<T>(Vector<T> value) => value.As<T, float>(); 319public static Vector<ushort> AsVectorUInt16<T>(Vector<T> value) => value.As<T, ushort>(); 328public static Vector<uint> AsVectorUInt32<T>(Vector<T> value) => value.As<T, uint>(); 337public static Vector<ulong> AsVectorUInt64<T>(Vector<T> value) => value.As<T, ulong>(); 452public static Vector<float> ConditionalSelect(Vector<int> condition, Vector<float> left, Vector<float> right) => ConditionalSelect(condition.As<int, float>(), left, right); 461public static Vector<double> ConditionalSelect(Vector<long> condition, Vector<double> left, Vector<double> right) => ConditionalSelect(condition.As<long, double>(), left, right); 786return Count(vector.As<T, int>(), -1); 790return Count(vector.As<T, long>(), -1); 1255public static Vector<long> Equals(Vector<double> left, Vector<double> right) => Equals<double>(left, right).As<double, long>(); 1276public static Vector<int> Equals(Vector<float> left, Vector<float> right) => Equals<float>(left, right).As<float, int>(); 1503public static Vector<long> GreaterThan(Vector<double> left, Vector<double> right) => GreaterThan<double>(left, right).As<double, long>(); 1524public static Vector<int> GreaterThan(Vector<float> left, Vector<float> right) => GreaterThan<float>(left, right).As<float, int>(); 1591public static Vector<long> GreaterThanOrEqual(Vector<double> left, Vector<double> right) => GreaterThanOrEqual<double>(left, right).As<double, long>(); 1612public static Vector<int> GreaterThanOrEqual(Vector<float> left, Vector<float> right) => GreaterThanOrEqual<float>(left, right).As<float, int>(); 1723return IndexOf(vector.As<T, int>(), -1); 1727return IndexOf(vector.As<T, long>(), -1); 1742return VectorMath.IsEvenIntegerSingle<Vector<float>, Vector<uint>>(vector.As<T, float>()).As<float, T>(); 1746return VectorMath.IsEvenIntegerDouble<Vector<double>, Vector<ulong>>(vector.As<T, double>()).As<double, T>(); 1758return ~IsZero(AndNot(Vector<float>.PositiveInfinity.As<float, uint>(), vector.As<T, uint>())).As<uint, T>(); 1762return ~IsZero(AndNot(Vector<double>.PositiveInfinity.As<double, ulong>(), vector.As<T, ulong>())).As<ulong, T>(); 1814return LessThan(vector.As<T, int>(), Vector<int>.Zero).As<int, T>(); 1818return LessThan(vector.As<T, long>(), Vector<long>.Zero).As<long, T>(); 1833return Equals(vector, Vector<float>.NegativeInfinity.As<float, T>()); 1837return Equals(vector, Vector<double>.NegativeInfinity.As<double, T>()); 1849return LessThan(Abs(vector).As<T, uint>() - Create<uint>(float.SmallestNormalBits), Create<uint>(float.PositiveInfinityBits - float.SmallestNormalBits)).As<uint, T>(); 1853return LessThan(Abs(vector).As<T, ulong>() - Create<ulong>(double.SmallestNormalBits), Create<ulong>(double.PositiveInfinityBits - double.SmallestNormalBits)).As<ulong, T>(); 1865return VectorMath.IsOddIntegerSingle<Vector<float>, Vector<uint>>(vector.As<T, float>()).As<float, T>(); 1869return VectorMath.IsOddIntegerDouble<Vector<double>, Vector<ulong>>(vector.As<T, double>()).As<double, T>(); 1885return GreaterThanOrEqual(vector.As<T, int>(), Vector<int>.Zero).As<int, T>(); 1889return GreaterThanOrEqual(vector.As<T, long>(), Vector<long>.Zero).As<long, T>(); 1904return Equals(vector, Vector<float>.PositiveInfinity.As<float, T>()); 1908return Equals(vector, Vector<double>.PositiveInfinity.As<double, T>()); 1920return LessThan(Abs(vector).As<T, uint>() - Vector<uint>.One, Create<uint>(float.MaxTrailingSignificand)).As<uint, T>(); 1924return LessThan(Abs(vector).As<T, ulong>() - Vector<ulong>.One, Create<ulong>(double.MaxTrailingSignificand)).As<ulong, T>(); 1961return LastIndexOf(vector.As<T, int>(), -1); 1965return LastIndexOf(vector.As<T, long>(), -1); 2050public static Vector<long> LessThan(Vector<double> left, Vector<double> right) => LessThan<double>(left, right).As<double, long>(); 2071public static Vector<int> LessThan(Vector<float> left, Vector<float> right) => LessThan<float>(left, right).As<float, int>(); 2138public static Vector<long> LessThanOrEqual(Vector<double> left, Vector<double> right) => LessThanOrEqual<double>(left, right).As<double, long>(); 2159public static Vector<int> LessThanOrEqual(Vector<float> left, Vector<float> right) => LessThanOrEqual<float>(left, right).As<float, int>(); 2812return None(vector.As<T, int>(), -1); 2816return None(vector.As<T, long>(), -1);