17 references to IsKnownConstant
System.Private.CoreLib (17)
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
1090
ReadOnlySpan<uint> days = RuntimeHelpers.
IsKnownConstant
(month) && month == 1 || IsLeapYear(year) ? DaysToMonth366 : DaysToMonth365;
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix3x2.cs (6)
148
if (RuntimeHelpers.
IsKnownConstant
(row))
187
if (RuntimeHelpers.
IsKnownConstant
(row))
249
if (RuntimeHelpers.
IsKnownConstant
(row) && RuntimeHelpers.
IsKnownConstant
(column))
288
if (RuntimeHelpers.
IsKnownConstant
(row) && RuntimeHelpers.
IsKnownConstant
(column))
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix4x4.cs (6)
222
if (RuntimeHelpers.
IsKnownConstant
(row))
268
if (RuntimeHelpers.
IsKnownConstant
(row))
336
if (RuntimeHelpers.
IsKnownConstant
(row) && RuntimeHelpers.
IsKnownConstant
(column))
382
if (RuntimeHelpers.
IsKnownConstant
(row) && RuntimeHelpers.
IsKnownConstant
(column))
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (2)
1676
if (RuntimeHelpers.
IsKnownConstant
(value0) && RuntimeHelpers.
IsKnownConstant
(value1))
src\System\Math.CoreCLR.cs (1)
98
if (RuntimeHelpers.
IsKnownConstant
(x))
src\System\MathF.CoreCLR.cs (1)
95
if (RuntimeHelpers.
IsKnownConstant
(x))