1.0.2 API documentation: integer.hpp Source File

| 1.0.2 API documentation

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 "../ext/scalar_common.hpp"
23 #include "../ext/vector_common.hpp"
24 #include <limits>
25
26 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
27 # pragma message("GLM: GLM_GTC_integer extension included")
28 #endif
29
30 namespace glm
31 {
34
37 template<length_t L, typename T, qualifier Q>
38 GLM_FUNC_DECL vec<L, T, Q> log2(vec<L, T, Q> const& v);
39
41 } //namespace glm
42
43 #include "integer.inl"
glm::log2
GLM_FUNC_DECL vec< L, T, Q > log2(vec< L, T, Q > const &v)
Returns the base 2 log of x, i.e., returns the value y, which satisfies the equation x = 2 ^ y.