Lines Matching refs:array
44 typedef unsigned char *UByteP; /* Pointer to an unsigned byte array */
56 #define ByteInArray(array,bit) /* Returns the byte offset to get to a bit */ \
57 (((UByteP)(array))[(bit) / BitsInByte])
59 #define BitIsTrue(array,bit) /* Test to see if a specific bit is True */ \
60 (ByteInArray(array,bit) & BitInByte(bit))
62 #define BitIsFalse(array,bit) /* Test to see if a specific bit is False */ \
63 (!(BitIsTrue(array,bit)))
65 #define BitTrue(array,bit) /* Set a specific bit to be True */ \
66 (ByteInArray(array,bit) |= BitInByte(bit))
68 #define BitFalse(array,bit) /* Set a specific bit to be False */ \
69 (ByteInArray(array,bit) &= ~BitInByte(bit))
71 #define BitToggle(array,bit) /* Toggle a specific bit */ \
72 (ByteInArray(array,bit) ^= BitInByte(bit))
77 #define BitValue(array,bit) /* Return True or False depending on bit */ \
78 (BitIsTrue((array),(bit)) ? True : False)
80 #define BitSet(array,bit,value) /* Set bit to given value in array */ \
81 (value) ? BitTrue((array),(bit)) : BitFalse((array),(bit))