Lines Matching refs:flag
99 prset_add(void *sp, size_t size, uint_t flag)
101 if (flag - 1 < 32 * size / sizeof (uint32_t))
102 ((uint32_t *)sp)[(flag - 1) / 32] |= 1U << ((flag - 1) % 32);
106 prset_del(void *sp, size_t size, uint_t flag)
108 if (flag - 1 < 32 * size / sizeof (uint32_t))
109 ((uint32_t *)sp)[(flag - 1) / 32] &= ~(1U << ((flag - 1) % 32));
113 prset_ismember(void *sp, size_t size, uint_t flag)
115 return ((flag - 1 < 32 * size / sizeof (uint32_t)) &&
116 (((uint32_t *)sp)[(flag - 1) / 32] & (1U << ((flag - 1) % 32))));