94 references to As
System.Private.CoreLib (94)
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector.cs (68)
95return All(vector.As<T, int>(), -1); 99return All(vector.As<T, long>(), -1); 127return Any(vector.As<T, int>(), -1); 131return Any(vector.As<T, long>(), -1); 165public static Vector<byte> AsVectorByte<T>(Vector<T> value) => value.As<T, byte>(); 173public static Vector<double> AsVectorDouble<T>(Vector<T> value) => value.As<T, double>(); 181public static Vector<short> AsVectorInt16<T>(Vector<T> value) => value.As<T, short>(); 189public static Vector<int> AsVectorInt32<T>(Vector<T> value) => value.As<T, int>(); 197public static Vector<long> AsVectorInt64<T>(Vector<T> value) => value.As<T, long>(); 205public static Vector<nint> AsVectorNInt<T>(Vector<T> value) => value.As<T, nint>(); 214public static Vector<nuint> AsVectorNUInt<T>(Vector<T> value) => value.As<T, nuint>(); 223public static Vector<sbyte> AsVectorSByte<T>(Vector<T> value) => value.As<T, sbyte>(); 231public static Vector<float> AsVectorSingle<T>(Vector<T> value) => value.As<T, float>(); 240public static Vector<ushort> AsVectorUInt16<T>(Vector<T> value) => value.As<T, ushort>(); 249public static Vector<uint> AsVectorUInt32<T>(Vector<T> value) => value.As<T, uint>(); 258public static Vector<ulong> AsVectorUInt64<T>(Vector<T> value) => value.As<T, ulong>(); 382public static Vector<float> ConditionalSelect(Vector<int> condition, Vector<float> left, Vector<float> right) => ConditionalSelect(condition.As<int, float>(), left, right); 391public static Vector<double> ConditionalSelect(Vector<long> condition, Vector<double> left, Vector<double> right) => ConditionalSelect(condition.As<long, double>(), left, right); 720return Count(vector.As<T, int>(), -1); 724return Count(vector.As<T, long>(), -1); 900public static Vector<long> Equals(Vector<double> left, Vector<double> right) => Equals<double>(left, right).As<double, long>(); 921public static Vector<int> Equals(Vector<float> left, Vector<float> right) => Equals<float>(left, right).As<float, int>(); 1157public static Vector<long> GreaterThan(Vector<double> left, Vector<double> right) => GreaterThan<double>(left, right).As<double, long>(); 1178public static Vector<int> GreaterThan(Vector<float> left, Vector<float> right) => GreaterThan<float>(left, right).As<float, int>(); 1245public static Vector<long> GreaterThanOrEqual(Vector<double> left, Vector<double> right) => GreaterThanOrEqual<double>(left, right).As<double, long>(); 1266public static Vector<int> GreaterThanOrEqual(Vector<float> left, Vector<float> right) => GreaterThanOrEqual<float>(left, right).As<float, int>(); 1377return IndexOf(vector.As<T, int>(), -1); 1381return IndexOf(vector.As<T, long>(), -1); 1396return VectorMath.IsEvenIntegerSingle<Vector<float>, Vector<uint>>(vector.As<T, float>()).As<float, T>(); 1400return VectorMath.IsEvenIntegerDouble<Vector<double>, Vector<ulong>>(vector.As<T, double>()).As<double, T>(); 1412return ~IsZero(AndNot(Create<uint>(float.PositiveInfinityBits), vector.As<T, uint>())).As<uint, T>(); 1416return ~IsZero(AndNot(Create<ulong>(double.PositiveInfinityBits), vector.As<T, ulong>())).As<ulong, T>(); 1472return LessThan(vector.As<T, int>(), Vector<int>.Zero).As<int, T>(); 1476return LessThan(vector.As<T, long>(), Vector<long>.Zero).As<long, T>(); 1491return Equals(vector, Create(float.NegativeInfinity).As<float, T>()); 1495return Equals(vector, Create(double.NegativeInfinity).As<double, T>()); 1507return LessThan(Abs(vector).As<T, uint>() - Create<uint>(float.SmallestNormalBits), Create<uint>(float.PositiveInfinityBits - float.SmallestNormalBits)).As<uint, T>(); 1511return LessThan(Abs(vector).As<T, ulong>() - Create<ulong>(double.SmallestNormalBits), Create<ulong>(double.PositiveInfinityBits - double.SmallestNormalBits)).As<ulong, T>(); 1523return VectorMath.IsOddIntegerSingle<Vector<float>, Vector<uint>>(vector.As<T, float>()).As<float, T>(); 1527return VectorMath.IsOddIntegerDouble<Vector<double>, Vector<ulong>>(vector.As<T, double>()).As<double, T>(); 1547return GreaterThanOrEqual(vector.As<T, int>(), Vector<int>.Zero).As<int, T>(); 1551return GreaterThanOrEqual(vector.As<T, long>(), Vector<long>.Zero).As<long, T>(); 1566return Equals(vector, Create(float.PositiveInfinity).As<float, T>()); 1570return Equals(vector, Create(double.PositiveInfinity).As<double, T>()); 1582return LessThan(Abs(vector).As<T, uint>() - Vector<uint>.One, Create<uint>(float.MaxTrailingSignificand)).As<uint, T>(); 1586return LessThan(Abs(vector).As<T, ulong>() - Vector<ulong>.One, Create<ulong>(double.MaxTrailingSignificand)).As<ulong, T>(); 1623return LastIndexOf(vector.As<T, int>(), -1); 1627return LastIndexOf(vector.As<T, long>(), -1); 1712public static Vector<long> LessThan(Vector<double> left, Vector<double> right) => LessThan<double>(left, right).As<double, long>(); 1733public static Vector<int> LessThan(Vector<float> left, Vector<float> right) => LessThan<float>(left, right).As<float, int>(); 1800public static Vector<long> LessThanOrEqual(Vector<double> left, Vector<double> right) => LessThanOrEqual<double>(left, right).As<double, long>(); 1821public static Vector<int> LessThanOrEqual(Vector<float> left, Vector<float> right) => LessThanOrEqual<float>(left, right).As<float, int>(); 2474return None(vector.As<T, int>(), -1); 2478return 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.Create(-0.0f).As<float, T>(); 584return value ^ Vector.Create(-0.0).As<double, T>(); 712return result.As<T, int>() == Vector<int>.AllBitsSet;