14 #include "../detail/setup.hpp"    19 #include "../ext/scalar_int_sized.hpp"    20 #include "../ext/scalar_uint_sized.hpp"    21 #include "../detail/qualifier.hpp"    22 #include "../detail/_vectorize.hpp"    26 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)    27 #       pragma message("GLM: GLM_GTC_bitfield extension included")    38         template<
typename genIUType>
    39         GLM_FUNC_DECL genIUType 
mask(genIUType Bits);
    48         template<length_t L, 
typename T, qualifier Q>
    49         GLM_FUNC_DECL vec<L, T, Q> 
mask(vec<L, T, Q> 
const& v);
    54         template<
typename genIUType>
    64         template<length_t L, 
typename T, qualifier Q>
    70         template<
typename genIUType>
    80         template<length_t L, 
typename T, qualifier Q>
    86         template<
typename genIUType>
    87         GLM_FUNC_DECL genIUType 
bitfieldFillOne(genIUType Value, 
int FirstBit, 
int BitCount);
    96         template<length_t L, 
typename T, qualifier Q>
    97         GLM_FUNC_DECL vec<L, T, Q> 
bitfieldFillOne(vec<L, T, Q> 
const& Value, 
int FirstBit, 
int BitCount);
   102         template<
typename genIUType>
   103         GLM_FUNC_DECL genIUType 
bitfieldFillZero(genIUType Value, 
int FirstBit, 
int BitCount);
   112         template<length_t L, 
typename T, qualifier Q>
   113         GLM_FUNC_DECL vec<L, T, Q> 
bitfieldFillZero(vec<L, T, Q> 
const& Value, 
int FirstBit, 
int BitCount);
   266 #include "bitfield.inl" 
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 uint64 bitfieldInterleave(uint16 x, uint16 y, uint16 z, uint16 w)
Interleaves the bits of x, y, z and w. 
detail::uint32 uint32
32 bit unsigned integer type. 
GLM_FUNC_DECL glm::u32vec2 bitfieldDeinterleave(glm::uint64 x)
Deinterleaves the bits of x. 
vec< 2, u32, defaultp > u32vec2
Default qualifier 32 bit unsigned integer vector of 2 components type. 
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. 
detail::int64 int64
64 bit signed integer type. 
vec< 2, u16, defaultp > u16vec2
Default qualifier 16 bit unsigned integer vector of 2 components type. 
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. 
GLM_FUNC_DECL vec< L, T, Q > bitfieldRotateLeft(vec< L, T, Q > const &In, int Shift)
Rotate all bits to the left. 
detail::uint64 uint64
64 bit unsigned integer type. 
vec< 2, u8, defaultp > u8vec2
Default qualifier 8 bit unsigned integer vector of 2 components type. 
detail::uint16 uint16
16 bit unsigned integer type. 
GLM_FUNC_DECL vec< L, T, Q > mask(vec< L, T, Q > const &v)
Build a mask of 'count' bits.