Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
agl-alexglopez committed Dec 18, 2024
1 parent bc78762 commit 57cf47b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bitset.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ on(size_t bit_i)
return (ccc_bitblock_)1 << (bit_i % CCC_IMPL_BTST_BLOCK_BITS);
}

/* Returns a mask of all bits on in the final bit block that represent only
those bits which are in use according to the bit set capacity. The remaining
higher order bits in the last block will be set to 0 because they are not
used. If the capacity is zero a block with all bits on is returned. */
static ccc_bitblock_
last_on(struct ccc_bitset_ const *const btst)
{
Expand Down

0 comments on commit 57cf47b

Please sign in to comment.