MCPcopy Create free account
hub / github.com/catboost/catboost / GetValueBitCount

Function GetValueBitCount

util/generic/bitops.h:227–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225 */
226template <typename T>
227static inline unsigned GetValueBitCount(T value) noexcept {
228 Y_ASSERT(value > 0);
229 using TCvt = typename ::TUnsignedInts::template TSelectBy<TSizeOfPredicate<sizeof(T)>::template TResult>::type;
230 return ::NBitOps::NPrivate::GetValueBitCountImpl(static_cast<TCvt>(value));
231}
232
233/**
234 * Returns the number of trailing 0-bits in `value`, starting at the least significant bit position

Callers 11

CountLeadingZeroBitsFunction · 0.85
TLockFreeSequenceClass · 0.85
TLockFreeSequenceClass · 0.85
CalcScoresForLeafFunction · 0.85
CalcSplitsCountFunction · 0.85
CalculatePairwiseScoreFunction · 0.85
AddMethod · 0.85
ValueBitCountMethod · 0.85
ValueBitCountMethod · 0.85

Calls 1

GetValueBitCountImplFunction · 0.85

Tested by

no test coverage detected