14 #include "../detail/setup.hpp"
19 #include "../detail/qualifier.hpp"
20 #include "../detail/type_int.hpp"
21 #include "../detail/_vectorize.hpp"
24 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
25 # pragma message("GLM: GLM_GTC_bitfield extension included")
36 template<
typename genIUType>
37 GLM_FUNC_DECL genIUType
mask(genIUType Bits);
46 template<length_t L,
typename T, qualifier Q>
47 GLM_FUNC_DECL vec<L, T, Q>
mask(vec<L, T, Q>
const& v);
52 template<
typename genIUType>
62 template<length_t L,
typename T, qualifier Q>
68 template<
typename genIUType>
78 template<length_t L,
typename T, qualifier Q>
84 template<
typename genIUType>
85 GLM_FUNC_DECL genIUType
bitfieldFillOne(genIUType Value,
int FirstBit,
int BitCount);
94 template<length_t L,
typename T, qualifier Q>
95 GLM_FUNC_DECL vec<L, T, Q>
bitfieldFillOne(vec<L, T, Q>
const& Value,
int FirstBit,
int BitCount);
100 template<
typename genIUType>
101 GLM_FUNC_DECL genIUType
bitfieldFillZero(genIUType Value,
int FirstBit,
int BitCount);
110 template<length_t L,
typename T, qualifier Q>
111 GLM_FUNC_DECL vec<L, T, Q>
bitfieldFillZero(vec<L, T, Q>
const& Value,
int FirstBit,
int BitCount);
228 #include "bitfield.inl"
GLM_FUNC_DECL vec< L, T, Q > bitfieldRotateLeft(vec< L, T, Q > const &In, int Shift)
Rotate all bits to the left.
GLM_FUNC_DECL uint64 bitfieldInterleave(uint16 x, uint16 y, uint16 z, uint16 w)
Interleaves the bits of x, y, z and w.
GLM_FUNC_DECL vec< L, T, Q > mask(vec< L, T, Q > const &v)
Build a mask of 'count' bits.
GLM_FUNC_DECL vec< L, T, Q > bitfieldFillOne(vec< L, T, Q > const &Value, int FirstBit, int BitCount)
Set to 1 a range of bits.
GLM_FUNC_DECL vec< L, T, Q > bitfieldRotateRight(vec< L, T, Q > const &In, int Shift)
Rotate all bits to the right.
GLM_FUNC_DECL vec< L, T, Q > bitfieldFillZero(vec< L, T, Q > const &Value, int FirstBit, int BitCount)
Set to 0 a range of bits.