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

Method CheckBlock

library/cpp/lfalloc/lf_allocX64.h:1705–1712  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1703 Finish = Start + N_CHUNK_SIZE;
1704 }
1705 void CheckBlock(char* pBlock) {
1706 if (pBlock && pBlock >= Start && pBlock < Finish) {
1707 ++FreeCount;
1708 i64 nShift = pBlock - Start;
1709 i64 nOffsetInStep = nShift & (N_CHUNK_SIZE - 1);
1710 Entries[nOffsetInStep / Size] = 1;
1711 }
1712 }
1713 void SetGlobalFree(char* ptr) {
1714 i64 nShift = ptr - Start;
1715 i64 nOffsetInStep = nShift & (N_CHUNK_SIZE - 1);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected