17 #include "../detail/setup.hpp"
18 #include "../detail/qualifier.hpp"
19 #include "../detail/func_common.hpp"
20 #include "../detail/func_integer.hpp"
21 #include "../detail/func_exponential.hpp"
24 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
25 # pragma message("GLM: GLM_GTC_integer extension included")
35 template<
typename genIUType>
36 GLM_FUNC_DECL genIUType
log2(genIUType x);
46 template<
typename genIUType>
47 GLM_FUNC_DECL genIUType
mod(genIUType x, genIUType y);
57 template<length_t L,
typename T, qualifier P>
58 GLM_FUNC_DECL vec<L, T, P>
mod(vec<L, T, P>
const& x, T y);
68 template<length_t L,
typename T, qualifier P>
69 GLM_FUNC_DECL vec<L, T, P>
mod(vec<L, T, P>
const& x, vec<L, T, P>
const& y);
80 template<length_t L,
typename T, qualifier P>
81 GLM_FUNC_DECL vec<L, int, P>
iround(vec<L, T, P>
const& x);
92 template<length_t L,
typename T, qualifier P>
93 GLM_FUNC_DECL vec<L, uint, P>
uround(vec<L, T, P>
const& x);
98 #include "integer.inl"
GLM_FUNC_DECL genIUType log2(genIUType x)
Returns the log2 of x for integer values.
GLM_FUNC_DECL vec< L, uint, P > uround(vec< L, T, P > const &x)
Returns a value equal to the nearest integer to x.
GLM_FUNC_DECL vec< L, int, P > iround(vec< L, T, P > const &x)
Returns a value equal to the nearest integer to x.
GLM_FUNC_DECL genIUType mod(genIUType x, genIUType y)
Modulus.