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

Method ValueBitCount

util/generic/bitmap.h:627–635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

625 }
626
627 Y_FORCE_INLINE size_t ValueBitCount() const {
628 size_t nonZeroChunk = Mask.GetChunkCapacity() - 1;
629 while (nonZeroChunk != 0 && !Mask.Data[nonZeroChunk]) {
630 --nonZeroChunk;
631 }
632 return nonZeroChunk || Mask.Data[nonZeroChunk]
633 ? nonZeroChunk * BitsPerChunk + GetValueBitCount(TIntType(Mask.Data[nonZeroChunk]))
634 : 0;
635 }
636
637 Y_PURE_FUNCTION Y_FORCE_INLINE bool Empty() const {
638 for (size_t i = 0; i < Mask.GetChunkCapacity(); ++i) {

Callers 1

TBitMapOpsClass · 0.45

Calls 2

GetValueBitCountFunction · 0.85
GetChunkCapacityMethod · 0.45

Tested by

no test coverage detected