MyGUI::Bitwise Class Reference

#include <MyGUI_Bitwise.h>

Static Public Member Functions

template<typename Type >
static MYGUI_FORCEINLINE Type firstPO2From (Type _value)
template<typename Type >
static MYGUI_FORCEINLINE bool isPO2 (Type _value)
template<typename Type >
static MYGUI_FORCEINLINE size_t getBitShift (Type _mask)

Detailed Description

Definition at line 31 of file MyGUI_Bitwise.h.


Member Function Documentation

template<typename Type >
static MYGUI_FORCEINLINE Type MyGUI::Bitwise::firstPO2From ( Type  _value  )  [inline, static]

Returns the closest power-of-two number greater or equal to value.

Definition at line 37 of file MyGUI_Bitwise.h.

template<typename Type >
static MYGUI_FORCEINLINE size_t MyGUI::Bitwise::getBitShift ( Type  _mask  )  [inline, static]

Returns the number of bits a pattern must be shifted right by to remove right-hand zeros.

Definition at line 60 of file MyGUI_Bitwise.h.

template<typename Type >
static MYGUI_FORCEINLINE bool MyGUI::Bitwise::isPO2 ( Type  _value  )  [inline, static]

Determines whether the number is power-of-two or not.

Definition at line 51 of file MyGUI_Bitwise.h.


The documentation for this class was generated from the following file:

Generated on 3 Dec 2009 for MyGUI by  doxygen 1.6.1