From 57cf47b3382fd3715e65f0f1270d8b6619ff8e38 Mon Sep 17 00:00:00 2001 From: Alexander Lopez Date: Tue, 17 Dec 2024 17:31:26 -0800 Subject: [PATCH] add comment --- src/bitset.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bitset.c b/src/bitset.c index 8f59654..57ef745 100644 --- a/src/bitset.c +++ b/src/bitset.c @@ -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) {