39 references to LeadingZeroCount
ILCompiler.Compiler (2)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Dwarf\DwarfHelper.cs (2)
18
uint x = 6 + 64 - (uint)BitOperations.
LeadingZeroCount
(value | 1UL);
27
uint x = 1 + 6 + 64 - (uint)BitOperations.
LeadingZeroCount
((ulong)(value ^ (value >> 63)) | 1UL);
ILCompiler.ReadyToRun (2)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Dwarf\DwarfHelper.cs (2)
18
uint x = 6 + 64 - (uint)BitOperations.
LeadingZeroCount
(value | 1UL);
27
uint x = 1 + 6 + 64 - (uint)BitOperations.
LeadingZeroCount
((ulong)(value ^ (value >> 63)) | 1UL);
Microsoft.Diagnostics.DataContractReader.Contracts (3)
Contracts\GCInfo\GCInfoDecoder.cs (1)
1269
return (uint)(63 - BitOperations.
LeadingZeroCount
(value));
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Dwarf\DwarfHelper.cs (2)
18
uint x = 6 + 64 - (uint)BitOperations.
LeadingZeroCount
(value | 1UL);
27
uint x = 1 + 6 + 64 - (uint)BitOperations.
LeadingZeroCount
((ulong)(value ^ (value >> 63)) | 1UL);
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Metrics\Base2ExponentialHistogramAggregator.cs (1)
255
exp -= BitOperations.
LeadingZeroCount
((ulong)(fraction - 1)) - 12 /* 64 - fraction width */;
System.Private.CoreLib (28)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.DecCalc.cs (1)
1660
int significandBits = 64 - BitOperations.
LeadingZeroCount
(significand);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (2)
718
return 64 + BitOperations.
LeadingZeroCount
(value._lower);
720
return BitOperations.
LeadingZeroCount
(value._upper);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (3)
292
public static long LeadingZeroCount(long value) => BitOperations.
LeadingZeroCount
((ulong)value);
479
return (sizeof(long) * 8) - BitOperations.
LeadingZeroCount
((ulong)(value));
483
return (sizeof(long) * 8) + 1 - BitOperations.
LeadingZeroCount
((ulong)(~value));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Math.cs (1)
909
return double.MinExponent - (BitOperations.
LeadingZeroCount
(x.TrailingSignificand) - double.BiasedExponentLength);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.BigInteger.cs (1)
536
return 64 - BitOperations.
LeadingZeroCount
(value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DiyFp.cs (1)
93
int lzcnt = BitOperations.
LeadingZeroCount
(f);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Formatting.cs (1)
821
int lz = BitOperations.
LeadingZeroCount
(fraction) - (63 - mantissaBits);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.NumberToFloatingPointBits.cs (1)
1284
int lz = BitOperations.
LeadingZeroCount
(w);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (1)
1480
int lz = BitOperations.
LeadingZeroCount
(significand);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BitOperations.cs (2)
133
int shift = 64 -
LeadingZeroCount
(value - 1);
263
return
LeadingZeroCount
((ulong)value);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (1)
4377
return (Vector128<T>.Count - 1) - AdvSimdFixupBitCount<T>(BitOperations.
LeadingZeroCount
(AdvSimdExtractBitMask(vector)));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (1)
4269
return 63 - BitOperations.
LeadingZeroCount
(vector.ExtractMostSignificantBits());
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticMap.cs (2)
942
index = 63 - BitOperations.
LeadingZeroCount
(mask);
964
index = 63 - BitOperations.
LeadingZeroCount
(mask);
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Byte.cs (1)
325
int highestSetBitIndex = 63 - BitOperations.
LeadingZeroCount
(mask);
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.Char.cs (1)
342
int bitPos = 62 - BitOperations.
LeadingZeroCount
(mask);
src\runtime\src\libraries\System.Private.CoreLib\src\System\SpanHelpers.T.cs (1)
3757
int index = 63 - BitOperations.
LeadingZeroCount
(notEqualsElements); // 31 = 32 (bits in Int32) - 1 (indexing from zero)
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (5)
807
int shift = BitOperations.
LeadingZeroCount
(divHi);
900
int shift = BitOperations.
LeadingZeroCount
(divisor);
918
Debug.Assert(BitOperations.
LeadingZeroCount
(divisor) == 0);
1014
return 64 + BitOperations.
LeadingZeroCount
(value._lower);
1016
return BitOperations.
LeadingZeroCount
(value._upper);
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (2)
289
public static ulong LeadingZeroCount(ulong value) => (ulong)BitOperations.
LeadingZeroCount
(value);
444
int IBinaryInteger<ulong>.GetShortestBitLength() => (sizeof(ulong) * 8) - BitOperations.
LeadingZeroCount
(m_value);
System.Runtime.Numerics (3)
System\Numerics\BigInteger.cs (2)
1017
c = BitOperations.
LeadingZeroCount
(h);
2107
int z = BitOperations.
LeadingZeroCount
(h);
System\Numerics\BigIntegerCalculator.GcdInv.cs (1)
368
int z = BitOperations.
LeadingZeroCount
(xh);