154 references to Scalar
System.Private.CoreLib (154)
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector.cs (50)
126T element = Scalar<T>.Abs(value.GetElementUnsafe(index)); 153T value = Scalar<T>.AddSaturate(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 181return All(vector, Scalar<T>.AllBitsSet); 213return Any(vector, Scalar<T>.AllBitsSet); 376T value = Scalar<T>.Ceiling(vector.GetElementUnsafe(index)); 396double element = Scalar<double>.Ceiling(value.GetElementUnsafe(index)); 415float element = Scalar<float>.Ceiling(value.GetElementUnsafe(index)); 757T element = Scalar<T>.CopySign(value.GetElementUnsafe(index), sign.GetElementUnsafe(index)); 802return Count(vector, Scalar<T>.AllBitsSet); 962T value = Scalar<T>.Equals(left.GetElementUnsafe(index), right.GetElementUnsafe(index)) ? Scalar<T>.AllBitsSet : default!; 1016if (Scalar<T>.Equals(left.GetElementUnsafe(index), right.GetElementUnsafe(index))) 1093T value = Scalar<T>.Floor(vector.GetElementUnsafe(index)); 1113double element = Scalar<double>.Floor(value.GetElementUnsafe(index)); 1132float element = Scalar<float>.Floor(value.GetElementUnsafe(index)); 1219T value = Scalar<T>.GreaterThan(left.GetElementUnsafe(index), right.GetElementUnsafe(index)) ? Scalar<T>.AllBitsSet : default!; 1265if (!Scalar<T>.GreaterThan(left.GetElementUnsafe(index), right.GetElementUnsafe(index))) 1285if (Scalar<T>.GreaterThan(left.GetElementUnsafe(index), right.GetElementUnsafe(index))) 1307T value = Scalar<T>.GreaterThanOrEqual(left.GetElementUnsafe(index), right.GetElementUnsafe(index)) ? Scalar<T>.AllBitsSet : default!; 1353if (!Scalar<T>.GreaterThanOrEqual(left.GetElementUnsafe(index), right.GetElementUnsafe(index))) 1373if (Scalar<T>.GreaterThanOrEqual(left.GetElementUnsafe(index), right.GetElementUnsafe(index))) 1459return IndexOf(vector, Scalar<T>.AllBitsSet); 1705return LastIndexOf(vector, Scalar<T>.AllBitsSet); 1774T value = Scalar<T>.LessThan(left.GetElementUnsafe(index), right.GetElementUnsafe(index)) ? Scalar<T>.AllBitsSet : default!; 1820if (!Scalar<T>.LessThan(left.GetElementUnsafe(index), right.GetElementUnsafe(index))) 1840if (Scalar<T>.LessThan(left.GetElementUnsafe(index), right.GetElementUnsafe(index))) 1862T value = Scalar<T>.LessThanOrEqual(left.GetElementUnsafe(index), right.GetElementUnsafe(index)) ? Scalar<T>.AllBitsSet : default!; 1908if (!Scalar<T>.LessThanOrEqual(left.GetElementUnsafe(index), right.GetElementUnsafe(index))) 1928if (Scalar<T>.LessThanOrEqual(left.GetElementUnsafe(index), right.GetElementUnsafe(index))) 2105T value = Scalar<T>.Max(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 2128T value = Scalar<T>.MaxMagnitude(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 2151T value = Scalar<T>.MaxMagnitudeNumber(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 2174T value = Scalar<T>.GreaterThan(left.GetElementUnsafe(index), right.GetElementUnsafe(index)) ? left.GetElementUnsafe(index) : right.GetElementUnsafe(index); 2197T value = Scalar<T>.MaxNumber(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 2220T value = Scalar<T>.Min(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 2243T value = Scalar<T>.MinMagnitude(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 2266T value = Scalar<T>.MinMagnitudeNumber(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 2289T value = Scalar<T>.LessThan(left.GetElementUnsafe(index), right.GetElementUnsafe(index)) ? left.GetElementUnsafe(index) : right.GetElementUnsafe(index); 2312T value = Scalar<T>.MinNumber(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 2352T value = Scalar<T>.MultiplyAddEstimate(left.GetElementUnsafe(index), right.GetElementUnsafe(index), addend.GetElementUnsafe(index)); 2556return None(vector, Scalar<T>.AllBitsSet); 2632T value = Scalar<T>.Round(vector.GetElementUnsafe(index)); 2976T element = Scalar<T>.Sqrt(value.GetElementUnsafe(index)); 3071T value = Scalar<T>.SubtractSaturate(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 3090sum = Scalar<T>.Add(sum, value.GetElementUnsafe(index)); 3131T value = Scalar<T>.Truncate(vector.GetElementUnsafe(index));
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector_1.cs (13)
132get => Vector.Create(Scalar<T>.AllBitsSet); 160result.SetElementUnsafe(i, Scalar<T>.Convert(i)); 192get => Vector.Create(Scalar<T>.One); 232T value = Scalar<T>.Add(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 297T value = Scalar<T>.Divide(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 316T value = Scalar<T>.Divide(left.GetElementUnsafe(index), right); 333if (!Scalar<T>.Equals(left.GetElementUnsafe(index), right.GetElementUnsafe(index))) 472T element = Scalar<T>.ShiftLeft(value.GetElementUnsafe(index), shiftCount); 491T value = Scalar<T>.Multiply(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 545T element = Scalar<T>.ShiftRightArithmetic(value.GetElementUnsafe(index), shiftCount); 564T value = Scalar<T>.Subtract(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 615T element = Scalar<T>.ShiftRightLogical(value.GetElementUnsafe(index), shiftCount); 726if (!Scalar<T>.ObjectEquals(self.GetElementUnsafe(index), other.GetElementUnsafe(index)))
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (7)
217return All(vector, Scalar<T>.AllBitsSet); 250return Any(vector, Scalar<T>.AllBitsSet); 870return Count(vector, Scalar<T>.AllBitsSet); 1954return IndexOf(vector, Scalar<T>.AllBitsSet); 2185return LastIndexOf(vector, Scalar<T>.AllBitsSet); 2915return None(vector, Scalar<T>.AllBitsSet); 4022result = Scalar<T>.Add(result, Vector64.Sum(vector._upper));
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128_1.cs (3)
42get => Vector128.Create(Scalar<T>.AllBitsSet); 70result.SetElementUnsafe(i, Scalar<T>.Convert(i)); 105get => Vector128.Create(Scalar<T>.One);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (7)
201return All(vector, Scalar<T>.AllBitsSet); 235return Any(vector, Scalar<T>.AllBitsSet); 877return Count(vector, Scalar<T>.AllBitsSet); 2038return IndexOf(vector, Scalar<T>.AllBitsSet); 2269return LastIndexOf(vector, Scalar<T>.AllBitsSet); 2950return None(vector, Scalar<T>.AllBitsSet); 3979result = Scalar<T>.Add(result, Vector128.Sum(vector._upper));
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256_1.cs (3)
41get => Vector256.Create(Scalar<T>.AllBitsSet); 69result.SetElementUnsafe(i, Scalar<T>.Convert(i)); 104get => Vector256.Create(Scalar<T>.One);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (7)
200return All(vector, Scalar<T>.AllBitsSet); 234return Any(vector, Scalar<T>.AllBitsSet); 780return Count(vector, Scalar<T>.AllBitsSet); 2064return IndexOf(vector, Scalar<T>.AllBitsSet); 2295return LastIndexOf(vector, Scalar<T>.AllBitsSet); 2975return None(vector, Scalar<T>.AllBitsSet); 3990result = Scalar<T>.Add(result, Vector256.Sum(vector._upper));
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512_1.cs (3)
41get => Vector512.Create(Scalar<T>.AllBitsSet); 69result.SetElementUnsafe(i, Scalar<T>.Convert(i)); 104get => Vector512.Create(Scalar<T>.One);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64.cs (47)
128T value = Scalar<T>.Abs(vector.GetElementUnsafe(index)); 155T value = Scalar<T>.AddSaturate(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 192return All(vector, Scalar<T>.AllBitsSet); 234return Any(vector, Scalar<T>.AllBitsSet); 399T value = Scalar<T>.Ceiling(vector.GetElementUnsafe(index)); 694T element = Scalar<T>.CopySign(value.GetElementUnsafe(index), sign.GetElementUnsafe(index)); 848return Count(vector, Scalar<T>.AllBitsSet); 1434T value = Scalar<T>.Equals(left.GetElementUnsafe(index), right.GetElementUnsafe(index)) ? Scalar<T>.AllBitsSet : default!; 1462if (Scalar<T>.Equals(left.GetElementUnsafe(index), right.GetElementUnsafe(index))) 1538uint value = Scalar<T>.ExtractMostSignificantBit(vector.GetElementUnsafe(index)); 1571T value = Scalar<T>.Floor(vector.GetElementUnsafe(index)); 1674T value = Scalar<T>.GreaterThan(left.GetElementUnsafe(index), right.GetElementUnsafe(index)) ? Scalar<T>.AllBitsSet : default!; 1693if (!Scalar<T>.GreaterThan(left.GetElementUnsafe(index), right.GetElementUnsafe(index))) 1714if (Scalar<T>.GreaterThan(left.GetElementUnsafe(index), right.GetElementUnsafe(index))) 1737T value = Scalar<T>.GreaterThanOrEqual(left.GetElementUnsafe(index), right.GetElementUnsafe(index)) ? Scalar<T>.AllBitsSet : default!; 1756if (!Scalar<T>.GreaterThanOrEqual(left.GetElementUnsafe(index), right.GetElementUnsafe(index))) 1777if (Scalar<T>.GreaterThanOrEqual(left.GetElementUnsafe(index), right.GetElementUnsafe(index))) 1874return IndexOf(vector, Scalar<T>.AllBitsSet); 2114return LastIndexOf(vector, Scalar<T>.AllBitsSet); 2184T value = Scalar<T>.LessThan(left.GetElementUnsafe(index), right.GetElementUnsafe(index)) ? Scalar<T>.AllBitsSet : default!; 2203if (!Scalar<T>.LessThan(left.GetElementUnsafe(index), right.GetElementUnsafe(index))) 2224if (Scalar<T>.LessThan(left.GetElementUnsafe(index), right.GetElementUnsafe(index))) 2247T value = Scalar<T>.LessThanOrEqual(left.GetElementUnsafe(index), right.GetElementUnsafe(index)) ? Scalar<T>.AllBitsSet : default!; 2266if (!Scalar<T>.LessThanOrEqual(left.GetElementUnsafe(index), right.GetElementUnsafe(index))) 2287if (Scalar<T>.LessThanOrEqual(left.GetElementUnsafe(index), right.GetElementUnsafe(index))) 2472T value = Scalar<T>.Max(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 2495T value = Scalar<T>.MaxMagnitude(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 2518T value = Scalar<T>.MaxMagnitudeNumber(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 2541T value = Scalar<T>.GreaterThan(left.GetElementUnsafe(index), right.GetElementUnsafe(index)) ? left.GetElementUnsafe(index) : right.GetElementUnsafe(index); 2564T value = Scalar<T>.MaxNumber(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 2587T value = Scalar<T>.Min(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 2610T value = Scalar<T>.MinMagnitude(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 2633T value = Scalar<T>.MinMagnitudeNumber(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 2656T value = Scalar<T>.LessThan(left.GetElementUnsafe(index), right.GetElementUnsafe(index)) ? left.GetElementUnsafe(index) : right.GetElementUnsafe(index); 2679T value = Scalar<T>.MinNumber(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 2722T value = Scalar<T>.MultiplyAddEstimate(left.GetElementUnsafe(index), right.GetElementUnsafe(index), addend.GetElementUnsafe(index)); 2952return None(vector, Scalar<T>.AllBitsSet); 3035T value = Scalar<T>.Round(vector.GetElementUnsafe(index)); 3778T value = Scalar<T>.Sqrt(vector.GetElementUnsafe(index)); 3873T value = Scalar<T>.SubtractSaturate(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 3894sum = Scalar<T>.Add(sum, vector.GetElementUnsafe(index)); 3970T value = Scalar<T>.Truncate(vector.GetElementUnsafe(index));
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64_1.cs (14)
41get => Vector64.Create(Scalar<T>.AllBitsSet); 69result.SetElementUnsafe(i, Scalar<T>.Convert(i)); 104get => Vector64.Create(Scalar<T>.One); 141T value = Scalar<T>.Add(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 195T value = Scalar<T>.Divide(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 214T value = Scalar<T>.Divide(left.GetElementUnsafe(index), right); 232if (!Scalar<T>.Equals(left.GetElementUnsafe(index), right.GetElementUnsafe(index))) 277T element = Scalar<T>.ShiftLeft(value.GetElementUnsafe(index), shiftCount); 297T value = Scalar<T>.Multiply(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 317T value = Scalar<T>.Multiply(left.GetElementUnsafe(index), right); 360T element = Scalar<T>.ShiftRightArithmetic(value.GetElementUnsafe(index), shiftCount); 380T value = Scalar<T>.Subtract(left.GetElementUnsafe(index), right.GetElementUnsafe(index)); 432T element = Scalar<T>.ShiftRightLogical(value.GetElementUnsafe(index), shiftCount); 473if (!Scalar<T>.ObjectEquals(self.GetElementUnsafe(index), other.GetElementUnsafe(index)))