Flow Visualisation
func_integer.hpp
Go to the documentation of this file.
1 
38 #ifndef glm_core_func_integer
39 #define glm_core_func_integer GLM_VERSION
40 
41 namespace glm
42 {
45 
54  template <typename genUType>
55  GLM_FUNC_DECL genUType uaddCarry(
56  genUType const & x,
57  genUType const & y,
58  genUType & carry);
59 
68  template <typename genUType>
69  GLM_FUNC_DECL genUType usubBorrow(
70  genUType const & x,
71  genUType const & y,
72  genUType & borrow);
73 
82  template <typename genUType>
84  genUType const & x,
85  genUType const & y,
86  genUType & msb,
87  genUType & lsb);
88 
97  template <typename genIType>
99  genIType const & x,
100  genIType const & y,
101  genIType & msb,
102  genIType & lsb);
103 
119  template <typename genIUType>
120  GLM_FUNC_DECL genIUType bitfieldExtract(
121  genIUType const & Value,
122  int const & Offset,
123  int const & Bits);
124 
139  template <typename genIUType>
140  GLM_FUNC_DECL genIUType bitfieldInsert(
141  genIUType const & Base,
142  genIUType const & Insert,
143  int const & Offset,
144  int const & Bits);
145 
154  template <typename genIUType>
155  GLM_FUNC_DECL genIUType bitfieldReverse(genIUType const & Value);
156 
165  template <typename T, template <typename> class genIUType>
166  GLM_FUNC_DECL typename genIUType<T>::signed_type bitCount(genIUType<T> const & Value);
167 
178  template <typename T, template <typename> class genIUType>
179  GLM_FUNC_DECL typename genIUType<T>::signed_type findLSB(genIUType<T> const & Value);
180 
192  template <typename T, template <typename> class genIUType>
193  GLM_FUNC_DECL typename genIUType<T>::signed_type findMSB(genIUType<T> const & Value);
194 
196 }//namespace glm
197 
198 #include "func_integer.inl"
199 
200 #endif//glm_core_func_integer
201 
GLM_FUNC_DECL void imulExtended(genIType const &x, genIType const &y, genIType &msb, genIType &lsb)
Definition: func_integer.inl:216
Definition: _detail.hpp:38
GLM_FUNC_DECL genUType usubBorrow(genUType const &x, genUType const &y, genUType &borrow)
Definition: func_integer.inl:96
GLM_FUNC_DECL genIUType< T >::signed_type bitCount(genIUType< T > const &Value)
GLM_FUNC_DECL genIUType< T >::signed_type findMSB(genIUType< T > const &Value)
GLM_FUNC_DECL genUType uaddCarry(genUType const &x, genUType const &y, genUType &carry)
Definition: func_integer.inl:39
GLM_FUNC_DECL void umulExtended(genUType const &x, genUType const &y, genUType &msb, genUType &lsb)
Definition: func_integer.inl:154
GLM_FUNC_DECL genIUType< T >::signed_type findLSB(genIUType< T > const &Value)
GLM_FUNC_DECL genIUType bitfieldInsert(genIUType const &Base, genIUType const &Insert, int const &Offset, int const &Bits)
Definition: func_integer.inl:339
GLM_FUNC_DECL genIUType bitfieldReverse(genIUType const &Value)
Definition: func_integer.inl:406
#define GLM_FUNC_DECL
Definition: setup.hpp:678
GLM_FUNC_DECL genIUType bitfieldExtract(genIUType const &Value, int const &Offset, int const &Bits)
Definition: func_integer.inl:278