17 #include "../detail/setup.hpp"
18 #include "../detail/qualifier.hpp"
19 #include "../common.hpp"
20 #include "../integer.hpp"
21 #include "../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 Q>
58 GLM_FUNC_DECL vec<L, T, Q>
mod(vec<L, T, Q>
const& x, T y);
68 template<length_t L,
typename T, qualifier Q>
69 GLM_FUNC_DECL vec<L, T, Q>
mod(vec<L, T, Q>
const& x, vec<L, T, Q>
const& y);
80 template<length_t L,
typename T, qualifier Q>
81 GLM_FUNC_DECL vec<L, int, Q>
iround(vec<L, T, Q>
const& x);
92 template<length_t L,
typename T, qualifier Q>
93 GLM_FUNC_DECL vec<L, uint, Q>
uround(vec<L, T, Q>
const& x);
98 #include "integer.inl"
GLM_FUNC_DECL vec< L, uint, Q > uround(vec< L, T, Q > const &x)
Returns a value equal to the nearest integer to x.
GLM_FUNC_DECL genIUType mod(genIUType x, genIUType y)
Modulus.
GLM_FUNC_DECL genIUType log2(genIUType x)
Returns the log2 of x for integer values.
GLM_FUNC_DECL vec< L, int, Q > iround(vec< L, T, Q > const &x)
Returns a value equal to the nearest integer to x.