|
|
@ -70,13 +70,6 @@ template <typename T> static inline T delta(T a, T b) { return a < b ? b - a : a
|
|
|
|
FORCEINLINE mask_t& operator ^= (mask_t& m1, mask_t m2) {m1 = m1 ^ m2; return m1;} \
|
|
|
|
FORCEINLINE mask_t& operator ^= (mask_t& m1, mask_t m2) {m1 = m1 ^ m2; return m1;} \
|
|
|
|
FORCEINLINE mask_t operator ~(mask_t m) {return (mask_t)(~(int)m);}
|
|
|
|
FORCEINLINE mask_t operator ~(mask_t m) {return (mask_t)(~(int)m);}
|
|
|
|
|
|
|
|
|
|
|
|
/** probably redundant enum combining operators (as we have conversion functions)
|
|
|
|
|
|
|
|
* but the old code is full of such arithmetics */
|
|
|
|
|
|
|
|
# define DECLARE_ENUM_AS_BIT_INDEX(idx_t, mask_t) \
|
|
|
|
|
|
|
|
FORCEINLINE mask_t operator << (int m, idx_t i) {return (mask_t)(m << (int)i);} \
|
|
|
|
|
|
|
|
FORCEINLINE mask_t operator << (mask_t m, int i) {return (mask_t)(((int)m) << i);} \
|
|
|
|
|
|
|
|
FORCEINLINE mask_t operator >> (mask_t m, int i) {return (mask_t)(((int)m) >> i);}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** Informative template class exposing basic enumeration properties used by several
|
|
|
|
/** Informative template class exposing basic enumeration properties used by several
|
|
|
|
* other templates below. Here we have only forward declaration. For each enum type
|
|
|
|
* other templates below. Here we have only forward declaration. For each enum type
|
|
|
|