16 #include "../gtc/bitfield.hpp"
18 #ifndef GLM_ENABLE_EXPERIMENTAL
19 # error "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 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
23 # pragma message("GLM: GLM_GTX_bit extension is deprecated, include GLM_GTC_bitfield and GLM_GTC_integer instead")
32 template<
typename genIUType>
36 template<
typename genIUType>
42 template<length_t L,
typename T, qualifier P>
50 template<
typename genIUType>
51 GLM_DEPRECATED GLM_FUNC_DECL genIUType
powerOfTwoAbove(genIUType Value);
58 template<length_t L,
typename T, qualifier P>
59 GLM_DEPRECATED GLM_FUNC_DECL vec<L, T, P>
powerOfTwoAbove(vec<L, T, P>
const& value);
66 template<
typename genIUType>
67 GLM_DEPRECATED GLM_FUNC_DECL genIUType
powerOfTwoBelow(genIUType Value);
74 template<length_t L,
typename T, qualifier P>
75 GLM_DEPRECATED GLM_FUNC_DECL vec<L, T, P>
powerOfTwoBelow(vec<L, T, P>
const& value);
82 template<
typename genIUType>
90 template<length_t L,
typename T, qualifier P>
91 GLM_DEPRECATED GLM_FUNC_DECL vec<L, T, P>
powerOfTwoNearest(vec<L, T, P>
const& value);
GLM_DEPRECATED GLM_FUNC_DECL vec< L, T, P > powerOfTwoAbove(vec< L, T, P > const &value)
Return the power of two number which value is just higher the input value.
GLM_FUNC_DECL genIUType lowestBitValue(genIUType Value)
GLM_FUNC_DECL vec< L, T, P > highestBitValue(vec< L, T, P > const &value)
Find the highest bit set to 1 in a integer variable and return its value.
GLM_DEPRECATED GLM_FUNC_DECL vec< L, T, P > powerOfTwoBelow(vec< L, T, P > const &value)
Return the power of two number which value is just lower the input value.
GLM_DEPRECATED GLM_FUNC_DECL vec< L, T, P > powerOfTwoNearest(vec< L, T, P > const &value)
Return the power of two number which value is the closet to the input value.