MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ub_empty

Function ub_empty

freebsd/kern/subr_unit.c:209–215  ·  view source on GitHub ↗

Is the unrb empty in at least the first len bits? */

Source from the content-addressed store, hash-verified

207
208/* Is the unrb empty in at least the first len bits? */
209static inline bool
210ub_empty(struct unrb *ub, int len) {
211 int first_set;
212
213 bit_ffs(ub->map, len, &first_set);
214 return (first_set == -1);
215}
216
217/* Is the unrb full? That is, is the number of set elements equal to len? */
218static inline bool

Callers 1

collapse_unrFunction · 0.85

Calls 1

bit_ffsFunction · 0.85

Tested by

no test coverage detected