MCPcopy Create free account
hub / github.com/apache/cloudberry / GET_NUM_BITS

Function GET_NUM_BITS

src/include/access/bitmap.h:339–356  ·  view source on GitHub ↗

* GET_NUM_BITS() -- return the number of bits included in the given * bitmap words. */

Source from the content-addressed store, hash-verified

337 * bitmap words.
338 */
339static inline uint64
340GET_NUM_BITS(const BM_HRL_WORD *contentWords,
341 const BM_HRL_WORD *headerWords,
342 uint32 nwords)
343{
344 uint64 nbits = 0;
345 uint32 i;
346
347 for (i = 0; i < nwords; i++)
348 {
349 if (IS_FILL_WORD(headerWords, i))
350 nbits += FILL_LENGTH(contentWords[i]) * BM_HRL_WORD_SIZE;
351 else
352 nbits += BM_HRL_WORD_SIZE;
353 }
354
355 return nbits;
356}
357
358/* reloptions.c */
359#define BITMAP_MIN_FILLFACTOR 10

Callers 2

updatesetbit_inpageFunction · 0.85
read_wordsFunction · 0.85

Calls 1

IS_FILL_WORDFunction · 0.85

Tested by

no test coverage detected