Searched refs:NBBY (Results 1 – 2 of 2) sorted by relevance
657 #ifndef NBBY /* the BSD family defines NBBY */658 #define NBBY 8 /* 8 bits per byte */ macro666 #define setbit(a, i) (((uint8 *)a)[(i) / NBBY] |= 1 << ((i) % NBBY))667 #define clrbit(a, i) (((uint8 *)a)[(i) / NBBY] &= ~(1 << ((i) % NBBY)))668 #define isset(a, i) (((const uint8 *)a)[(i) / NBBY] & (1 << ((i) % NBBY)))669 #define isclr(a, i) ((((const uint8 *)a)[(i) / NBBY] & (1 << ((i) % NBBY))) == 0)
2270 ((uint8 *)array)[bit / NBBY] |= 1 << (bit % NBBY); in setbit()2277 ((uint8 *)array)[bit / NBBY] &= ~(1 << (bit % NBBY)); in clrbit()2284 return (((const uint8 *)array)[bit / NBBY] & (1 << (bit % NBBY))); in isset()2291 return ((((const uint8 *)array)[bit / NBBY] & (1 << (bit % NBBY))) == 0); in isclr()