38 #ifndef GLM_GTX_optimum_pow 
   39 #define GLM_GTX_optimum_pow 
   44 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED)) 
   45 #       pragma message("GLM: GLM_GTX_optimum_pow extension included") 
   56         template <
typename genType>
 
   57         genType 
pow2(
const genType& x);
 
   61         template <
typename genType>
 
   62         genType 
pow3(
const genType& x);
 
   66         template <
typename genType>
 
   67         genType 
pow4(
const genType& x);
 
   75         template <precision P>
 
   76         detail::tvec2<bool, P> 
powOfTwo(detail::tvec2<int, P> 
const & x);
 
   80         template <precision P>
 
   81         detail::tvec3<bool, P> 
powOfTwo(detail::tvec3<int, P> 
const & x);
 
   85         template <precision P>
 
   86         detail::tvec4<bool, P> 
powOfTwo(detail::tvec4<int, P> 
const & x);
 
   92 #include "optimum_pow.inl" 
   94 #endif//GLM_GTX_optimum_pow 
genType pow3(const genType &x)
Returns x raised to the power of 3. 
genType pow4(const genType &x)
Returns x raised to the power of 4. 
genType pow2(const genType &x)
Returns x raised to the power of 2. 
bool powOfTwo(int num)
Checks if the parameter is a power of 2 number.