Home
last modified time | relevance | path

Searched refs:RT_BITMAP_BITS_MIN (Results 1 – 1 of 1) sorted by relevance

/components/utilities/libadt/bitmap/
A Dbitmap.h18 #define RT_BITMAP_BITS_MIN (sizeof(rt_bitmap_t) * 8) macro
19 #define RT_BITMAP_LEN(bits) (((bits) + (RT_BITMAP_BITS_MIN) - 1) / (RT_BITMAP_BITS_MIN))
20 #define RT_BITMAP_BIT_LEN(nr) (nr * RT_BITMAP_BITS_MIN)
25 bitmap[bit / RT_BITMAP_BITS_MIN] |= (1UL << (bit & (RT_BITMAP_BITS_MIN - 1))); in rt_bitmap_set_bit()
30 return !!(bitmap[bit / RT_BITMAP_BITS_MIN] & (1UL << (bit & (RT_BITMAP_BITS_MIN - 1)))); in rt_bitmap_test_bit()
35 bitmap[bit / RT_BITMAP_BITS_MIN] &= ~(1UL << (bit & (RT_BITMAP_BITS_MIN - 1))); in rt_bitmap_clear_bit()

Completed in 7 milliseconds