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::log2
GLM_FUNC_DECL genType log2(genType x)
glm::sint
signed int sint
Definition: gtx/integer.hpp:80
glm::floor_log2
GLM_FUNC_DECL unsigned int floor_log2(unsigned int x)
glm::pow
GLM_FUNC_DECL genType pow(genType const &base, genType const &exponent)
glm::sqrt
GLM_FUNC_DECL vecType< T, P > sqrt(vecType< T, P > const &x)
glm
Definition: _literals.hpp:31
glm::factorial
GLM_FUNC_DECL genType factorial(genType const &x)
glm::uint
unsigned int uint
Definition: type_int.hpp:170
GLM_FUNC_DECL
#define GLM_FUNC_DECL
Definition: setup.hpp:728
glm::mod
GLM_FUNC_DECL genType mod(genType const &x, genType const &y)
glm::nlz
GLM_FUNC_DECL uint nlz(uint x)


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:11