Searched refs:bmp (Results 1 – 2 of 2) sorted by relevance
26 struct bitmask *bmp; in bitmask_alloc() local28 bmp = malloc(sizeof(*bmp)); in bitmask_alloc()29 if (!bmp) in bitmask_alloc()31 bmp->size = n; in bitmask_alloc()32 bmp->maskp = calloc(longsperbits(n), sizeof(unsigned long)); in bitmask_alloc()33 if (!bmp->maskp) { in bitmask_alloc()34 free(bmp); in bitmask_alloc()37 return bmp; in bitmask_alloc()41 void bitmask_free(struct bitmask *bmp) in bitmask_free() argument43 if (!bmp) in bitmask_free()[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 …]