1 #ifndef RH_BITSET_H
 2 #define RH_BITSET_H
 3 
 4 #define RH_BIT_SET(_dst,_bits)          ( (_dst) |= (_bits) )
 5 #define RH_BIT_DEL(_dst,_bits)          ( (_dst) &= ~(_bits) )
 6 
 7 #define RH_BIT_ISSET(_dst,_bits)        ( (_dst) & (_bits) )
 8 #define RH_BIT_ISSETFULL(_dst,_bits)    ( (_bits) == ((_dst) & (_bits)) )
 9 
10 #endif /* RH_BITSET_H */


syntax highlighted by Code2HTML, v. 0.9.1