Lines Matching defs:bit
35 inline static void SetBit(Type &val, int bit) {val |= Type(1) << bit;}
38 inline static void ClearBit(Type &val, int bit) {val &= ~(Type(1) << bit);}
41 inline static void InvertBit(Type &val, int bit) {val ^= Type(1) << bit;}
44 inline static void SetBitTo(Type &val, int bit, bool isSet) {
45 val ^= ((isSet? -1: 0) ^ val) & (Type(1) << bit);}
48 inline static bool IsBitSet(Type val, int bit) {
49 return (val & (Type(1) << bit)) != 0;}