Searched refs:maxbit (Results 1 – 2 of 2) sorted by relevance
/third_party/selinux/libsepol/src/ |
D | ebitmap.c | 167 int ebitmap_not(ebitmap_t *dst, const ebitmap_t *e1, unsigned int maxbit) in ebitmap_not() argument 177 for (cur_startbit = 0; cur_startbit < maxbit; cur_startbit += MAPSIZE) { in ebitmap_not() 188 if (maxbit - cur_startbit < MAPSIZE) in ebitmap_not() 189 map &= (((MAPTYPE)1) << (maxbit - cur_startbit)) - 1; in ebitmap_not() 216 int ebitmap_andnot(ebitmap_t *dst, const ebitmap_t *e1, const ebitmap_t *e2, unsigned int maxbit) in ebitmap_andnot() argument 221 rc = ebitmap_not(&e3, e2, maxbit); in ebitmap_andnot() 451 int ebitmap_init_range(ebitmap_t * e, unsigned int minbit, unsigned int maxbit) in ebitmap_init_range() argument 455 uint32_t maxstartbit = maxbit & ~(MAPSIZE - 1); in ebitmap_init_range() 463 if (minbit > maxbit) in ebitmap_init_range() 482 new->map = ~((MAPTYPE)0) >> (MAPSIZE - (maxbit - startbit + 1)); in ebitmap_init_range() [all …]
|
/third_party/selinux/libsepol/include/sepol/policydb/ |
D | ebitmap.h | 88 extern int ebitmap_not(ebitmap_t *dst, const ebitmap_t *e1, unsigned int maxbit); 89 … int ebitmap_andnot(ebitmap_t *dst, const ebitmap_t *e1, const ebitmap_t *e2, unsigned int maxbit); 97 extern int ebitmap_init_range(ebitmap_t * e, unsigned int minbit, unsigned int maxbit);
|