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

Method ValueBitCount

util/generic/ymath_ut.cpp:70–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 }
69
70 inline void ValueBitCount() {
71 UNIT_ASSERT_VALUES_EQUAL(GetValueBitCount(1), 1u);
72 UNIT_ASSERT_VALUES_EQUAL(GetValueBitCount(2), 2u);
73 UNIT_ASSERT_VALUES_EQUAL(GetValueBitCount(3), 2u);
74 UNIT_ASSERT_VALUES_EQUAL(GetValueBitCount(257), 9u);
75 }
76};
77
78UNIT_TEST_SUITE_REGISTRATION(TMathTest);

Callers

nothing calls this directly

Calls 1

GetValueBitCountFunction · 0.85

Tested by

no test coverage detected