93 references to As
System.Private.CoreLib (93)
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector.cs (68)
77return All(vector.As<T, int>(), -1); 81return All(vector.As<T, long>(), -1); 109return Any(vector.As<T, int>(), -1); 113return Any(vector.As<T, long>(), -1); 147public static Vector<byte> AsVectorByte<T>(Vector<T> value) => value.As<T, byte>(); 155public static Vector<double> AsVectorDouble<T>(Vector<T> value) => value.As<T, double>(); 163public static Vector<short> AsVectorInt16<T>(Vector<T> value) => value.As<T, short>(); 171public static Vector<int> AsVectorInt32<T>(Vector<T> value) => value.As<T, int>(); 179public static Vector<long> AsVectorInt64<T>(Vector<T> value) => value.As<T, long>(); 187public static Vector<nint> AsVectorNInt<T>(Vector<T> value) => value.As<T, nint>(); 196public static Vector<nuint> AsVectorNUInt<T>(Vector<T> value) => value.As<T, nuint>(); 205public static Vector<sbyte> AsVectorSByte<T>(Vector<T> value) => value.As<T, sbyte>(); 213public static Vector<float> AsVectorSingle<T>(Vector<T> value) => value.As<T, float>(); 222public static Vector<ushort> AsVectorUInt16<T>(Vector<T> value) => value.As<T, ushort>(); 231public static Vector<uint> AsVectorUInt32<T>(Vector<T> value) => value.As<T, uint>(); 240public static Vector<ulong> AsVectorUInt64<T>(Vector<T> value) => value.As<T, ulong>(); 364public static Vector<float> ConditionalSelect(Vector<int> condition, Vector<float> left, Vector<float> right) => ConditionalSelect(condition.As<int, float>(), left, right); 373public static Vector<double> ConditionalSelect(Vector<long> condition, Vector<double> left, Vector<double> right) => ConditionalSelect(condition.As<long, double>(), left, right); 702return Count(vector.As<T, int>(), -1); 706return Count(vector.As<T, long>(), -1); 882public static Vector<long> Equals(Vector<double> left, Vector<double> right) => Equals<double>(left, right).As<double, long>(); 903public static Vector<int> Equals(Vector<float> left, Vector<float> right) => Equals<float>(left, right).As<float, int>(); 1139public static Vector<long> GreaterThan(Vector<double> left, Vector<double> right) => GreaterThan<double>(left, right).As<double, long>(); 1160public static Vector<int> GreaterThan(Vector<float> left, Vector<float> right) => GreaterThan<float>(left, right).As<float, int>(); 1227public static Vector<long> GreaterThanOrEqual(Vector<double> left, Vector<double> right) => GreaterThanOrEqual<double>(left, right).As<double, long>(); 1248public static Vector<int> GreaterThanOrEqual(Vector<float> left, Vector<float> right) => GreaterThanOrEqual<float>(left, right).As<float, int>(); 1359return IndexOf(vector.As<T, int>(), -1); 1363return IndexOf(vector.As<T, long>(), -1); 1378return VectorMath.IsEvenIntegerSingle<Vector<float>, Vector<uint>>(vector.As<T, float>()).As<float, T>(); 1382return VectorMath.IsEvenIntegerDouble<Vector<double>, Vector<ulong>>(vector.As<T, double>()).As<double, T>(); 1394return ~IsZero(AndNot(Create<uint>(float.PositiveInfinityBits), vector.As<T, uint>())).As<uint, T>(); 1398return ~IsZero(AndNot(Create<ulong>(double.PositiveInfinityBits), vector.As<T, ulong>())).As<ulong, T>(); 1454return LessThan(vector.As<T, int>(), Vector<int>.Zero).As<int, T>(); 1458return LessThan(vector.As<T, long>(), Vector<long>.Zero).As<long, T>(); 1473return Equals(vector, Create(float.NegativeInfinity).As<float, T>()); 1477return Equals(vector, Create(double.NegativeInfinity).As<double, T>()); 1489return LessThan(Abs(vector).As<T, uint>() - Create<uint>(float.SmallestNormalBits), Create<uint>(float.PositiveInfinityBits - float.SmallestNormalBits)).As<uint, T>(); 1493return LessThan(Abs(vector).As<T, ulong>() - Create<ulong>(double.SmallestNormalBits), Create<ulong>(double.PositiveInfinityBits - double.SmallestNormalBits)).As<ulong, T>(); 1505return VectorMath.IsOddIntegerSingle<Vector<float>, Vector<uint>>(vector.As<T, float>()).As<float, T>(); 1509return VectorMath.IsOddIntegerDouble<Vector<double>, Vector<ulong>>(vector.As<T, double>()).As<double, T>(); 1529return GreaterThanOrEqual(vector.As<T, int>(), Vector<int>.Zero).As<int, T>(); 1533return GreaterThanOrEqual(vector.As<T, long>(), Vector<long>.Zero).As<long, T>(); 1548return Equals(vector, Create(float.PositiveInfinity).As<float, T>()); 1552return Equals(vector, Create(double.PositiveInfinity).As<double, T>()); 1564return LessThan(Abs(vector).As<T, uint>() - Vector<uint>.One, Create<uint>(float.MaxTrailingSignificand)).As<uint, T>(); 1568return LessThan(Abs(vector).As<T, ulong>() - Vector<ulong>.One, Create<ulong>(double.MaxTrailingSignificand)).As<ulong, T>(); 1605return LastIndexOf(vector.As<T, int>(), -1); 1609return LastIndexOf(vector.As<T, long>(), -1); 1694public static Vector<long> LessThan(Vector<double> left, Vector<double> right) => LessThan<double>(left, right).As<double, long>(); 1715public static Vector<int> LessThan(Vector<float> left, Vector<float> right) => LessThan<float>(left, right).As<float, int>(); 1782public static Vector<long> LessThanOrEqual(Vector<double> left, Vector<double> right) => LessThanOrEqual<double>(left, right).As<double, long>(); 1803public static Vector<int> LessThanOrEqual(Vector<float> left, Vector<float> right) => LessThanOrEqual<float>(left, right).As<float, int>(); 2497return None(vector.As<T, int>(), -1); 2501return None(vector.As<T, long>(), -1);
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector_1.cs (25)
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>();