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_next — iterate to the next set bit in bitmap

Description

       The  ck_bitmap_next()  function will increment the iterator object pointed to by iterator to point to the
       next set bit in the bitmap. If ck_bitmap_next() returns true then  the  pointer  pointed  to  by  bit  is
       initialized to the number of the current set bit pointed to by the iterator object.

       It is expected that iterator has been initialized using the ck_bitmap_iterator_init(3) function.

Errors

       Behavior is undefined if iterator or bitmap are uninitialized.

Library

       Concurrency Kit (libck, -lck)

Name

       ck_bitmap_next — iterate to the next set bit in bitmap

Return Values

       If   ck_bitmap_next()  returns  true  then  the  object  pointed  to  by  bit  contains  a  set  bit.  If
       ck_bitmap_next() returns false then value of the object pointed to by bit is undefined.

See Also

ck_bitmap_base(3),   ck_bitmap_size(3),    ck_bitmap_init(3),    ck_bitmap_set(3),    ck_bitmap_reset(3),
       ck_bitmap_clear(3), ck_bitmap_bits(3), ck_bitmap_buffer(3), ck_bitmap_iterator_init(3)

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

                                                 April 27, 2012                                CK_BITMAP_TEST(3)

Synopsis

#include<ck_bitmap.h>boolck_bitmap_next(ck_bitmap_t*bitmap, ck_bitmap_iterator_titerator, unsignedint*bit);

See Also