17 #include "../gtc/integer.hpp"
19 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
20 # pragma message("GLM: GLM_GTX_integer extension included")
30 GLM_FUNC_DECL
int pow(
int x,
int y);
34 GLM_FUNC_DECL
int sqrt(
int x);
38 GLM_FUNC_DECL
unsigned int floor_log2(
unsigned int x);
42 GLM_FUNC_DECL
int mod(
int x,
int y);
46 template <
typename genType>
47 GLM_FUNC_DECL genType
factorial(genType
const & x);
72 #include "integer.inl"
GLM_FUNC_DECL uint mod(uint x, uint y)
Modulus.
signed int sint
32bit signed integer.
unsigned int uint
Unsigned integer type.
GLM_FUNC_DECL uint pow(uint x, uint y)
Returns x raised to the y power.
GLM_FUNC_DECL uint nlz(uint x)
Returns the number of leading zeros.
GLM_FUNC_DECL uint sqrt(uint x)
Returns the positive square root of x.
GLM_FUNC_DECL genType factorial(genType const &x)
Return the factorial value of a number (!12 max, integer only) From GLM_GTX_integer extension...
GLM_FUNC_DECL unsigned int floor_log2(unsigned int x)
Returns the floor log2 of x.