- Main Page
- Related Pages
- Modules
- Files

- File List

integer.hpp
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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