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

Function CountTrailingZeroBits

util/generic/bitops.h:237–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235 */
236template <typename T>
237static inline unsigned CountTrailingZeroBits(T value) noexcept {
238 Y_ASSERT(value > 0);
239 using TCvt = typename ::TUnsignedInts::template TSelectBy<TSizeOfPredicate<sizeof(T)>::template TResult>::type;
240 return ::NBitOps::NPrivate::CountTrailingZeroBitsImpl(static_cast<TCvt>(value));
241}
242
243/*
244 * Returns 64-bit mask with `bits` lower bits set.

Callers 5

DivMod128Function · 0.85
BinarizeMethod · 0.85
FirstNonZeroBitMethod · 0.85
NextNonZeroBitMethod · 0.85
TestCTZFunction · 0.85

Calls 1

Tested by 2

BinarizeMethod · 0.68
TestCTZFunction · 0.68