MCPcopy Create free account
hub / github.com/MyGUI/mygui / isPO2

Function isPO2

MyGUIEngine/include/MyGUI_Bitwise.h:30–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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_

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected