17 #include "../detail/setup.hpp"
18 #include "../detail/qualifier.hpp"
19 #include "../detail/_vectorize.hpp"
20 #include "../vector_relational.hpp"
21 #include "../common.hpp"
24 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
25 # pragma message("GLM: GLM_GTC_integer extension included")
36 template<
typename genIUType>
46 template<length_t L,
typename T, qualifier Q>
47 GLM_FUNC_DECL vec<L, bool, Q>
isPowerOfTwo(vec<L, T, Q>
const& v);
53 template<
typename genIUType>
64 template<length_t L,
typename T, qualifier Q>
71 template<
typename genIUType>
82 template<length_t L,
typename T, qualifier Q>
88 template<
typename genIUType>
98 template<length_t L,
typename T, qualifier Q>
104 template<
typename genIUType>
105 GLM_FUNC_DECL
bool isMultiple(genIUType v, genIUType Multiple);
114 template<length_t L,
typename T, qualifier Q>
115 GLM_FUNC_DECL vec<L, bool, Q>
isMultiple(vec<L, T, Q>
const& v, T Multiple);
124 template<length_t L,
typename T, qualifier Q>
125 GLM_FUNC_DECL vec<L, bool, Q>
isMultiple(vec<L, T, Q>
const& v, vec<L, T, Q>
const& Multiple);
135 template<
typename genType>
136 GLM_FUNC_DECL genType
ceilMultiple(genType v, genType Multiple);
148 template<length_t L,
typename T, qualifier Q>
149 GLM_FUNC_DECL vec<L, T, Q>
ceilMultiple(vec<L, T, Q>
const& v, vec<L, T, Q>
const& Multiple);
159 template<
typename genType>
160 GLM_FUNC_DECL genType
floorMultiple(genType v, genType Multiple);
172 template<length_t L,
typename T, qualifier Q>
173 GLM_FUNC_DECL vec<L, T, Q>
floorMultiple(vec<L, T, Q>
const& v, vec<L, T, Q>
const& Multiple);
183 template<
typename genType>
184 GLM_FUNC_DECL genType
roundMultiple(genType v, genType Multiple);
196 template<length_t L,
typename T, qualifier Q>
197 GLM_FUNC_DECL vec<L, T, Q>
roundMultiple(vec<L, T, Q>
const& v, vec<L, T, Q>
const& Multiple);
GLM_FUNC_DECL vec< L, T, Q > ceilMultiple(vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)
Higher multiple number of Source.
GLM_FUNC_DECL vec< L, T, Q > floorPowerOfTwo(vec< L, T, Q > const &v)
Return the power of two number which value is just lower the input value, round down to a power of tw...
GLM_FUNC_DECL vec< L, bool, Q > isPowerOfTwo(vec< L, T, Q > const &v)
Return true if the value is a power of two number.
GLM_FUNC_DECL vec< L, T, Q > roundPowerOfTwo(vec< L, T, Q > const &v)
Return the power of two number which value is the closet to the input value.
GLM_FUNC_DECL vec< L, T, Q > ceilPowerOfTwo(vec< L, T, Q > const &v)
Return the power of two number which value is just higher the input value, round up to a power of two...
GLM_FUNC_DECL vec< L, T, Q > floorMultiple(vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)
Lower multiple number of Source.
GLM_FUNC_DECL vec< L, bool, Q > isMultiple(vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)
Return true if the 'Value' is a multiple of 'Multiple'.
GLM_FUNC_DECL vec< L, T, Q > roundMultiple(vec< L, T, Q > const &v, vec< L, T, Q > const &Multiple)
Lower multiple number of Source.