0.9.9 API documenation

- Main Page
- Modules
- Files

- File List

gtc/integer.hpp
Go to the documentation of this file.
1
14 #pragma once
15
16 // Dependencies
17 #include "../detail/setup.hpp"
18 #include "../detail/qualifier.hpp"
19 #include "../common.hpp"
20 #include "../integer.hpp"
21 #include "../exponential.hpp"
22 #include <limits>
23
24 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
25 # pragma message("GLM: GLM_GTC_integer extension included")
26 #endif
27
28 namespace glm
29 {
32
35 template<typename genIUType>
36 GLM_FUNC_DECL genIUType log2(genIUType x);
37
46 template<typename genIUType>
47 GLM_FUNC_DECL genIUType mod(genIUType x, genIUType y);
48
57 template<length_t L, typename T, qualifier Q>
58 GLM_FUNC_DECL vec<L, T, Q> mod(vec<L, T, Q> const& x, T y);
59
68 template<length_t L, typename T, qualifier Q>
69 GLM_FUNC_DECL vec<L, T, Q> mod(vec<L, T, Q> const& x, vec<L, T, Q> const& y);
70
80 template<length_t L, typename T, qualifier Q>
81 GLM_FUNC_DECL vec<L, int, Q> iround(vec<L, T, Q> const& x);
82
92 template<length_t L, typename T, qualifier Q>
93 GLM_FUNC_DECL vec<L, uint, Q> uround(vec<L, T, Q> const& x);
94
96 } //namespace glm
97
98 #include "integer.inl"
glm
Definition: common.hpp:20
glm::uround
GLM_FUNC_DECL vec< L, uint, Q > uround(vec< L, T, Q > const &x)
Returns a value equal to the nearest integer to x.
glm::mod
GLM_FUNC_DECL genIUType mod(genIUType x, genIUType y)
Modulus.
glm::log2
GLM_FUNC_DECL genIUType log2(genIUType x)
Returns the log2 of x for integer values.
glm::iround
GLM_FUNC_DECL vec< L, int, Q > iround(vec< L, T, Q > const &x)
Returns a value equal to the nearest integer to x.