logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ck_bitmap_size — returns necessary number of bytes for bitmap

Description

       The  ck_bitmap_size()  function  returns  the number of bytes that are necessary to allocate for a bitmap
       that will contain the number of bits specified by n_bits.

       This function is used to determine how many bytes to allocate for dynamically created bitmap objects. The
       allocated object must still be initialized using ck_bitmap_init(3).

Library

       Concurrency Kit (libck, -lck)

Name

       ck_bitmap_size — returns necessary number of bytes for bitmap

Return Values

       This function returns a non-zero value.

See Also

ck_bitmap_base(3), ck_bitmap_init(3), ck_bitmap_set_mpmc(3), ck_bitmap_reset_mpmc(3),  ck_bitmap_test(3),
       ck_bitmap_clear(3), ck_bitmap_bits(3), ck_bitmap_buffer(3)

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

                                                 April 22, 2012                                CK_BITMAP_SIZE(3)

Synopsis

#include<ck_bitmap.h>unsignedintck_bitmap_size(unsignedintn_bits);

See Also