| 0.9.6

- Main Page
- Modules
- Files

- File List

gtc/integer.hpp
Go to the documentation of this file.
1
43 #pragma once
44
45 // Dependencies
46 #include "../detail/setup.hpp"
47 #include "../detail/precision.hpp"
48 #include "../detail/func_common.hpp"
49 #include "../detail/func_integer.hpp"
50 #include "../detail/func_exponential.hpp"
51 #include <limits>
52
53 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
54 # pragma message("GLM: GLM_GTC_integer extension included")
55 #endif
56
57 namespace glm
58 {
61
64 template <typename genIUType>
65 GLM_FUNC_DECL genIUType log2(genIUType x);
66
75 template <typename genIUType>
76 GLM_FUNC_DECL genIUType mod(genIUType x, genIUType y);
77
87 template <typename T, precision P, template <typename, precision> class vecType>
88 GLM_FUNC_DECL vecType<T, P> mod(vecType<T, P> const & x, T y);
89
99 template <typename T, precision P, template <typename, precision> class vecType>
100 GLM_FUNC_DECL vecType<T, P> mod(vecType<T, P> const & x, vecType<T, P> const & y);
101
103 } //namespace glm
104
105 #include "integer.inl"
glm::log2
GLM_FUNC_DECL genIUType log2(genIUType x)
Returns the log2 of x for integer values.
glm
Definition: _noise.hpp:39
glm::mod
GLM_FUNC_DECL genIUType mod(genIUType x, genIUType y)
Modulus.