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