38 #ifndef glm_core_func_integer 39 #define glm_core_func_integer GLM_VERSION 54 template <
typename genUType>
68 template <
typename genUType>
82 template <
typename genUType>
97 template <
typename genIType>
119 template <
typename genIUType>
121 genIUType
const & Value,
139 template <
typename genIUType>
141 genIUType
const & Base,
142 genIUType
const & Insert,
154 template <
typename genIUType>
165 template <
typename T,
template <
typename>
class genIUType>
166 typename genIUType<T>::signed_type
bitCount(genIUType<T>
const & Value);
178 template <
typename T,
template <
typename>
class genIUType>
179 typename genIUType<T>::signed_type
findLSB(genIUType<T>
const & Value);
192 template <
typename T,
template <
typename>
class genIUType>
193 typename genIUType<T>::signed_type
findMSB(genIUType<T>
const & Value);
200 #endif//glm_core_func_integer genIUType< T >::signed_type findMSB(genIUType< T > const &Value)
Returns the bit number of the most significant bit in the binary representation of value...
void imulExtended(genIType const &x, genIType const &y, genIType &msb, genIType &lsb)
Multiplies 32-bit integers x and y, producing a 64-bit result.
Definition: func_integer.inl:217
Definition: _detail.hpp:38
genIUType< T >::signed_type findLSB(genIUType< T > const &Value)
Returns the bit number of the least significant bit set to 1 in the binary representation of value...
genIUType bitfieldReverse(genIUType const &value)
Returns the reversal of the bits of value.
Definition: func_integer.inl:407
genUType uaddCarry(genUType const &x, genUType const &y, genUType &carry)
Adds 32-bit unsigned integer x and y, returning the sum modulo pow(2, 32).
Definition: func_integer.inl:40
genIUType< T >::signed_type bitCount(genIUType< T > const &Value)
Returns the number of bits set to 1 in the binary representation of value.
genIUType bitfieldExtract(genIUType const &Value, int const &Offset, int const &Bits)
Extracts bits [offset, offset + bits - 1] from value, returning them in the least significant bits of...
Definition: func_integer.inl:279
void umulExtended(genUType const &x, genUType const &y, genUType &msb, genUType &lsb)
Multiplies 32-bit integers x and y, producing a 64-bit result.
Definition: func_integer.inl:155
OpenGL Mathematics (glm.g-truc.net)
genUType usubBorrow(genUType const &x, genUType const &y, genUType &borrow)
Subtracts the 32-bit unsigned integer y from x, returning the difference if non-negative, or pow(2, 32) plus the difference otherwise.
Definition: func_integer.inl:97
genIUType bitfieldInsert(genIUType const &Base, genIUType const &Insert, int const &Offset, int const &Bits)
Returns the insertion the bits least-significant bits of insert into base.
Definition: func_integer.inl:340