gtx/integer.hpp
Go to the documentation of this file.
1 
38 #pragma once
39 
40 // Dependency:
41 #include "../glm.hpp"
42 
43 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
44 # pragma message("GLM: GLM_GTX_integer extension included")
45 #endif
46 
47 namespace glm
48 {
51 
54  GLM_FUNC_DECL int pow(int x, int y);
55 
58  GLM_FUNC_DECL int sqrt(int x);
59 
62  template <typename genIUType>
63  GLM_FUNC_DECL genIUType log2(genIUType x);
64 
67  GLM_FUNC_DECL unsigned int floor_log2(unsigned int x);
68 
71  GLM_FUNC_DECL int mod(int x, int y);
72 
75  template <typename genType>
76  GLM_FUNC_DECL genType factorial(genType const & x);
77 
80  typedef signed int sint;
81 
85 
89 
93 
97 
99 }//namespace glm
100 
101 #include "integer.inl"
GLM_FUNC_DECL genType mod(genType const &x, genType const &y)
GLM_FUNC_DECL vecType< T, P > sqrt(vecType< T, P > const &x)
GLM_FUNC_DECL unsigned int floor_log2(unsigned int x)
unsigned int uint
Definition: type_int.hpp:170
GLM_FUNC_DECL uint nlz(uint x)
GLM_FUNC_DECL genType factorial(genType const &x)
signed int sint
Definition: gtx/integer.hpp:80
GLM_FUNC_DECL genType pow(genType const &base, genType const &exponent)
GLM_FUNC_DECL genType log2(genType x)
#define GLM_FUNC_DECL
Definition: setup.hpp:728


rtabmap
Author(s): Mathieu Labbe
autogenerated on Wed Jun 5 2019 22:41:31