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 π
ck_bitmap_size(3)ck_bitmap_init(3)ck_bitmap_set(3)ck_bitmap_reset(3)ck_bitmap_test(3)ck_bitmap_clear(3)ck_bitmap_bits(3)ck_bitmap_buffer(3)
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
- alpine 3.24: ck-doc 0.7.2-r1 Β· BSD-2-Clause AND Apache-2.0
- debian bookworm: libck-dev 0.7.1-10 Β· BSD-2-Clause
- debian trixie: libck-dev 0.7.2-6 Β· BSD-2-Clause
- epel 10: ck-devel 0.7.2-1.el10_1 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- epel 9: ck-devel 0.7.0-10.el9 Β· BSD
- fedora 43: ck-devel 0.7.2-2.fc43 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- fedora 43: ck-devel 0.7.2-2.fc43 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- fedora 44: ck-devel 0.7.2-4.fc44 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- fedora 44: ck-devel 0.7.2-4.fc44 Β· BSD-2-clause AND Apache-2.0 AND BSD-3-clause
- nixos 26.05: ck 0.7.2
- nixpkgs unstable: ck 0.7.2
- opensuse-leap 16.0: ck-devel 0.7.2-bp160.1.9 Β· Apache-2.0 AND BSD-2-Clause
- opensuse-leap 16.0: ck-devel 0.7.2-bp160.1.9 Β· Apache-2.0 AND BSD-2-Clause
- opensuse-leap 16.0: ck-devel 0.7.2-bp160.1.9 Β· Apache-2.0 AND BSD-2-Clause
- ubuntu jammy: libck-dev 0.7.1-6ubuntu2 Β· BSD-2-Clause
- ubuntu noble: libck-dev 0.7.1-13build1 Β· BSD-2-Clause
- ubuntu questing: libck-dev 0.7.2-5ubuntu1
- ubuntu resolute: libck-dev 0.7.2-5ubuntu2 Β· BSD-2-Clause
- ubuntu stonking: libck-dev 0.7.2-11 Β· BSD-2-Clause
- Copyright 2012-2013 Samy Al Bahra
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms