38 #ifndef GLM_GTX_integer 
   39 #define GLM_GTX_integer 
   44 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED)) 
   45 #       pragma message("GLM: GLM_GTX_integer extension included") 
   55         int pow(
int x, 
int y);
 
   63         template <
typename genIUType>
 
   64         genIUType 
log2(genIUType 
const & x);
 
   72         int mod(
int x, 
int y);
 
   76         template <
typename genType> 
 
  102 #include "integer.inl" 
  104 #endif//GLM_GTX_integer 
GLM_FUNC_DECL genType sqrt(genType const &x)
Returns the positive square root of x. 
unsigned int floor_log2(unsigned int x)
Returns the floor log2 of x. 
unsigned int uint
Unsigned integer type. 
signed int sint
32bit signed integer. 
GLM_FUNC_DECL genType mod(genType const &x, genType const &y)
Modulus. 
GLM_FUNC_DECL genType log2(genType const &x)
Returns the base 2 log of x, i.e., returns the value y, which satisfies the equation x = 2 ^ y...
genType factorial(genType const &x)
Return the factorial value of a number (!12 max, integer only) From GLM_GTX_integer extension...
GLM_FUNC_DECL genType pow(genType const &base, genType const &exponent)
Returns 'base' raised to the power 'exponent'. 
uint nlz(uint x)
Returns the number of leading zeros.