Lines Matching refs:NBBY
407 #ifndef NBBY /* the BSD family defines NBBY */
408 #define NBBY 8 /* 8 bits per byte */
409 #endif /* #ifndef NBBY */
410 #define setbit(a, i) (((uint8 *)a)[(i)/NBBY] |= 1<<((i)%NBBY))
411 #define clrbit(a, i) (((uint8 *)a)[(i)/NBBY] &= ~(1<<((i)%NBBY)))
412 #define isset(a, i) (((const uint8 *)a)[(i)/NBBY] & (1<<((i)%NBBY)))
413 #define isclr(a, i) ((((const uint8 *)a)[(i)/NBBY] & (1<<((i)%NBBY))) == 0)