bitmap_test

This commit is contained in:
mykola2312 2022-04-20 15:52:31 +03:00
parent 0820443a7d
commit e69b5fba50

View file

@ -15,5 +15,7 @@ uint bit_log2(uint64_t value);
bit_set((m)[p>>CU_WORD_POW2], p&((1<<CU_WORD_POW2)-1), b) bit_set((m)[p>>CU_WORD_POW2], p&((1<<CU_WORD_POW2)-1), b)
#define bitmap_get(m, p) \ #define bitmap_get(m, p) \
bit_get((m)[p>>CU_WORD_POW2], p&((1<<CU_WORD_POW2)-1)) bit_get((m)[p>>CU_WORD_POW2], p&((1<<CU_WORD_POW2)-1))
#define bitmap_test(m, p) \
bit_test((m)[p>>CU_WORD_POW2], p&((1<<CU_WORD_POW2)-1))
#endif #endif