* GET_NUM_BITS() -- return the number of bits included in the given * bitmap words. */
| 337 | * bitmap words. |
| 338 | */ |
| 339 | static inline uint64 |
| 340 | GET_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 |
no test coverage detected