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_ENABLE && !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);
47 template<length_t L,
typename T, qualifier Q>
48 GLM_FUNC_DECL vec<L, int, Q>
iround(vec<L, T, Q>
const& x);
59 template<length_t L,
typename T, qualifier Q>
60 GLM_FUNC_DECL vec<L, uint, Q>
uround(vec<L, T, Q>
const& x);
65 #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 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.