0.9.9 API documenation
|
Go to the source code of this file.
Functions | |
template<typename genType > | |
GLM_FUNC_DECL int | bitCount (genType v) |
Returns the number of bits set to 1 in the binary representation of value. More... | |
template<typename T , precision P, template< typename, precision > class vecType> | |
GLM_FUNC_DECL vecType< int, P > | bitCount (vecType< T, P > const &v) |
Returns the number of bits set to 1 in the binary representation of value. More... | |
template<typename T , precision P, template< typename, precision > class vecType> | |
GLM_FUNC_DECL vecType< T, P > | bitfieldExtract (vecType< T, P > const &Value, int Offset, int Bits) |
Extracts bits [offset, offset + bits - 1] from value, returning them in the least significant bits of the result. More... | |
template<typename T , precision P, template< typename, precision > class vecType> | |
GLM_FUNC_DECL vecType< T, P > | bitfieldInsert (vecType< T, P > const &Base, vecType< T, P > const &Insert, int Offset, int Bits) |
Returns the insertion the bits least-significant bits of insert into base. More... | |
template<typename T , precision P, template< typename, precision > class vecType> | |
GLM_FUNC_DECL vecType< T, P > | bitfieldReverse (vecType< T, P > const &v) |
Returns the reversal of the bits of value. More... | |
template<typename genIUType > | |
GLM_FUNC_DECL int | findLSB (genIUType x) |
Returns the bit number of the least significant bit set to 1 in the binary representation of value. More... | |
template<typename T , precision P, template< typename, precision > class vecType> | |
GLM_FUNC_DECL vecType< int, P > | findLSB (vecType< T, P > const &v) |
Returns the bit number of the least significant bit set to 1 in the binary representation of value. More... | |
template<typename genIUType > | |
GLM_FUNC_DECL int | findMSB (genIUType x) |
Returns the bit number of the most significant bit in the binary representation of value. More... | |
template<typename T , precision P, template< typename, precision > class vecType> | |
GLM_FUNC_DECL vecType< int, P > | findMSB (vecType< T, P > const &v) |
Returns the bit number of the most significant bit in the binary representation of value. More... | |
template<precision P, template< typename, precision > class vecType> | |
GLM_FUNC_DECL void | imulExtended (vecType< int, P > const &x, vecType< int, P > const &y, vecType< int, P > &msb, vecType< int, P > &lsb) |
Multiplies 32-bit integers x and y, producing a 64-bit result. More... | |
template<precision P, template< typename, precision > class vecType> | |
GLM_FUNC_DECL vecType< uint, P > | uaddCarry (vecType< uint, P > const &x, vecType< uint, P > const &y, vecType< uint, P > &carry) |
Adds 32-bit unsigned integer x and y, returning the sum modulo pow(2, 32). More... | |
template<precision P, template< typename, precision > class vecType> | |
GLM_FUNC_DECL void | umulExtended (vecType< uint, P > const &x, vecType< uint, P > const &y, vecType< uint, P > &msb, vecType< uint, P > &lsb) |
Multiplies 32-bit integers x and y, producing a 64-bit result. More... | |
template<precision P, template< typename, precision > class vecType> | |
GLM_FUNC_DECL vecType< uint, P > | usubBorrow (vecType< uint, P > const &x, vecType< uint, P > const &y, vecType< uint, P > &borrow) |
Subtracts the 32-bit unsigned integer y from x, returning the difference if non-negative, or pow(2, 32) plus the difference otherwise. More... | |
Definition in file func_integer.hpp.