Flow Visualisation
integer.hpp
Go to the documentation of this file.
1 
38 #ifndef GLM_GTX_integer
39 #define GLM_GTX_integer GLM_VERSION
40 
41 // Dependency:
42 #include "../glm.hpp"
43 
44 #if(defined(GLM_MESSAGES) && !defined(glm_ext))
45 # pragma message("GLM: GLM_GTX_integer extension included")
46 #endif
47 
48 namespace glm
49 {
52 
55  int pow(int x, int y);
56 
59  int sqrt(int x);
60 
63  template <typename genIUType>
64  genIUType log2(genIUType const & x);
65 
68  unsigned int floor_log2(unsigned int x);
69 
72  int mod(int x, int y);
73 
76  template <typename genType>
77  genType factorial(genType const & x);
78 
81  typedef signed int sint;
82 
85  uint pow(uint x, uint y);
86 
89  uint sqrt(uint x);
90 
93  uint mod(uint x, uint y);
94 
97  uint nlz(uint x);
98 
100 }//namespace glm
101 
102 #include "integer.inl"
103 
104 #endif//GLM_GTX_integer
unsigned int floor_log2(unsigned int x)
uint_t uint
Definition: type_int.hpp:131
GLM_FUNC_DECL genType mod(genType const &x, genType const &y)
Definition: func_common.inl:210
Definition: _detail.hpp:38
GLM_FUNC_DECL genType log2(genType const &x)
Definition: func_exponential.inl:118
uint nlz(uint x)
Definition: integer.inl:172
genType factorial(genType const &x)
Definition: integer.inl:94
signed int sint
Definition: integer.hpp:81
GLM_FUNC_DECL genType pow(genType const &base, genType const &exponent)
Definition: func_exponential.inl:34
GLM_FUNC_DECL genType sqrt(genType const &x)
Definition: func_exponential.inl:131