| 28 | /** Determines whether the number is power-of-two or not. */ |
| 29 | template<typename Type> |
| 30 | static inline bool isPO2(Type _value) |
| 31 | { |
| 32 | return (_value & (_value - 1)) == 0; |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | #endif // MYGUI_BITWISE_H_ |
no outgoing calls
no test coverage detected