16 #include "../gtc/bitfield.hpp" 18 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED) 19 # ifndef GLM_ENABLE_EXPERIMENTAL 20 # pragma message("GLM: GLM_GTX_bit 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.") 22 # pragma message("GLM: GLM_GTX_bit extension included") 32 template<
typename genIUType>
36 template<
typename genIUType>
42 template<length_t L,
typename T, qualifier Q>
50 template<
typename genIUType>
51 GLM_DEPRECATED GLM_FUNC_DECL genIUType
powerOfTwoAbove(genIUType Value);
58 template<length_t L,
typename T, qualifier Q>
59 GLM_DEPRECATED GLM_FUNC_DECL vec<L, T, Q>
powerOfTwoAbove(vec<L, T, Q>
const& value);
66 template<
typename genIUType>
67 GLM_DEPRECATED GLM_FUNC_DECL genIUType
powerOfTwoBelow(genIUType Value);
74 template<length_t L,
typename T, qualifier Q>
75 GLM_DEPRECATED GLM_FUNC_DECL vec<L, T, Q>
powerOfTwoBelow(vec<L, T, Q>
const& value);
82 template<
typename genIUType>
90 template<length_t L,
typename T, qualifier Q>
91 GLM_DEPRECATED GLM_FUNC_DECL vec<L, T, Q>
powerOfTwoNearest(vec<L, T, Q>
const& value);
GLM_FUNC_DECL genIUType highestBitValue(genIUType Value)
Definition: bit.inl:9
GLM_FUNC_DECL genIUType lowestBitValue(genIUType Value)
Definition: bit.inl:31
Core features
Definition: common.hpp:20
GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoAbove(genIUType Value)
Return the power of two number which value is just higher the input value.
GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoBelow(genIUType Value)
Return the power of two number which value is just lower the input value.
GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoNearest(genIUType Value)
Return the power of two number which value is the closet to the input value.