43 #include "../detail/type_int.hpp" 
   44 #include "../detail/setup.hpp" 
   47 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED)) 
   48 #       pragma message("GLM: GLM_GTX_bit extension included") 
   58         template <
typename genIType>
 
   59         GLM_FUNC_DECL genIType 
mask(genIType 
const & count);
 
   63         template <
typename genType> 
 
   68         template <
typename genType> 
 
   73         template <
typename genType> 
 
   78         template <
typename genType> 
 
   83         template <
typename genType> 
 
   88         template <
typename genType> 
 
   89         GLM_DEPRECATED GLM_FUNC_DECL genType 
bitRevert(genType 
const & value);
 
   93         template <
typename genType>
 
   94         GLM_FUNC_DECL genType 
bitRotateRight(genType 
const & In, std::size_t Shift);
 
   98         template <
typename genType>
 
   99         GLM_FUNC_DECL genType 
bitRotateLeft(genType 
const & In, std::size_t Shift);
 
  103         template <
typename genIUType>
 
  105                 genIUType 
const & Value,
 
  111         template <
typename genIUType>
 
  113                 genIUType 
const & Value,
 
GLM_FUNC_DECL genType highestBitValue(genType const &value)
Find the highest bit set to 1 in a integer variable and return its value. 
detail::int8 int8
8 bit signed integer type. 
detail::uint32 uint32
32 bit unsigned integer type. 
detail::int16 int16
16 bit signed integer type. 
detail::int64 int64
64 bit signed integer type. 
GLM_FUNC_DECL genType powerOfTwoNearest(genType const &value)
Return the power of two number which value is the closet to the input value. 
GLM_FUNC_DECL genType bitRotateLeft(genType const &In, std::size_t Shift)
Rotate all bits to the left. 
GLM_FUNC_DECL genIType mask(genIType const &count)
Build a mask of 'count' bits. 
detail::uint64 uint64
64 bit unsigned integer type. 
detail::int32 int32
32 bit signed integer type. 
GLM_FUNC_DECL genIUType fillBitfieldWithOne(genIUType const &Value, int const &FromBit, int const &ToBit)
Set to 1 a range of bits. 
GLM_FUNC_DECL genType bitRotateRight(genType const &In, std::size_t Shift)
Rotate all bits to the right. 
detail::uint8 uint8
8 bit unsigned integer type. 
GLM_FUNC_DECL bool isPowerOfTwo(genType const &value)
Return true if the value is a power of two number. 
GLM_DEPRECATED GLM_FUNC_DECL genType bitRevert(genType const &value)
Revert all bits of any integer based type. 
GLM_FUNC_DECL genType powerOfTwoBelow(genType const &value)
Return the power of two number which value is just lower the input value. 
detail::uint16 uint16
16 bit unsigned integer type. 
GLM_FUNC_DECL genIUType fillBitfieldWithZero(genIUType const &Value, int const &FromBit, int const &ToBit)
Set to 0 a range of bits. 
GLM_FUNC_DECL int16 bitfieldInterleave(int8 x, int8 y)
Interleaves the bits of x and y. 
GLM_FUNC_DECL genType powerOfTwoAbove(genType const &value)
Return the power of two number which value is just higher the input value.