|
1.0.0 API documentation
|
Go to the documentation of this file.
17 #include "../gtc/integer.hpp"
19 #ifndef GLM_ENABLE_EXPERIMENTAL
20 # error "GLM: GLM_GTX_integer is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
21 #elif GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
22 # pragma message("GLM: GLM_GTX_integer extension included")
32 GLM_FUNC_DECL
int pow(
int x, uint y);
36 GLM_FUNC_DECL
int sqrt(
int x);
44 GLM_FUNC_DECL
int mod(
int x,
int y);
48 template<
typename genType>
57 GLM_FUNC_DECL uint
pow(uint x, uint y);
61 GLM_FUNC_DECL uint
sqrt(uint x);
65 GLM_FUNC_DECL uint
mod(uint x, uint y);
69 GLM_FUNC_DECL uint
nlz(uint x);
74 #include "integer.inl"
signed int sint
32bit signed integer.
GLM_FUNC_DECL uint mod(uint x, uint y)
Modulus.
GLM_FUNC_DECL uint sqrt(uint x)
Returns the positive square root of x.
GLM_FUNC_DECL uint nlz(uint x)
Returns the number of leading zeros.
GLM_FUNC_DECL uint pow(uint x, uint y)
Returns x raised to the y power.
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.