CK_BITMAP_BASE(3)

πŸŽ€ NAME πŸŽ€

ck_bitmap_base β€” determine the size of a bit array in bytes

Okay so bestie, you're on the CK_BITMAP_BASE(3) page πŸ’… and this function is literally the β€œhow many bytes do my bits need?” girlie. Iconic.


πŸ’– LIBRARY πŸ’–

It's part of Concurrency Kit (libck, -lck). So when you link, you're linking the whole concurrency kit vibe. Slay.


✨ SYNOPSIS ✨

#include <ck_bitmap.h>

unsigned int
ck_bitmap_base(unsigned int n_bits);

πŸ¦‹ DESCRIPTION πŸ¦‹

The ck_bitmap_base() function returns the number of bytes that would be used to store the number of bits specified by n_bits. So like, you give it a bit count, and it tells you how many bytes that bit count would take up. Lowkey essential. No cap.


πŸ‘‘ RETURN VALUES πŸ‘‘

This function returns a non-zero value that is guaranteed to be a multiple of sizeof(CK_BITMAP_WORD). So the return is never zero, and it's always chunky in sizeof(CK_BITMAP_WORD)-sized pieces. Periodt.


🌈 SEE ALSO 🌈

Additional information available at http://concurrencykit.org/


mwah πŸ’‹ this page is dated April 22, 2012, comes from Concurrency Kit (libck, -lck), and is filed under CK_BITMAP_BASE(3). Bye bestie, go size those bits! 🫢✨

πŸ“¦ where this page comes from