Searched refs:bmp (Results 1 – 2 of 2) sorted by relevance
28 bmp = malloc(sizeof(*bmp)); in bitmask_alloc()29 if (!bmp) in bitmask_alloc()31 bmp->size = n; in bitmask_alloc()34 free(bmp); in bitmask_alloc()37 return bmp; in bitmask_alloc()43 if (!bmp) in bitmask_free()45 free(bmp->maskp); in bitmask_free()47 free(bmp); in bitmask_free()118 return bmp; in bitmask_setbit()127 return bmp; in bitmask_setall()[all …]
17 void bitmask_free(struct bitmask *bmp);19 struct bitmask *bitmask_setbit(struct bitmask *bmp, unsigned int i);20 struct bitmask *bitmask_setall(struct bitmask *bmp);21 struct bitmask *bitmask_clearall(struct bitmask *bmp);23 unsigned int bitmask_first(const struct bitmask *bmp);24 unsigned int bitmask_next(const struct bitmask *bmp, unsigned int i);25 unsigned int bitmask_last(const struct bitmask *bmp);26 int bitmask_isallclear(const struct bitmask *bmp);27 int bitmask_isbitset(const struct bitmask *bmp, unsigned int i);29 int bitmask_parselist(const char *buf, struct bitmask *bmp);[all …]
Completed in 5 milliseconds