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

Function TestCTZ

util/generic/bitops_ut.cpp:8–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6
7template <typename T>
8static void TestCTZ() {
9 for (unsigned int i = 0; i < (sizeof(T) << 3); ++i) {
10 UNIT_ASSERT_VALUES_EQUAL(CountTrailingZeroBits(T(1) << i), i);
11 }
12}
13
14template <typename T>
15static void TestFastClp2ForEachPowerOf2() {

Callers

nothing calls this directly

Calls 2

CountTrailingZeroBitsFunction · 0.85
TClass · 0.70

Tested by

no test coverage detected