Clutter Engine 0.0.1
Loading...
Searching...
No Matches
integer.hpp
Go to the documentation of this file.
1
12
13#pragma once
14
15// Dependency:
16#include "../glm.hpp"
17#include "../gtc/integer.hpp"
18
19#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
20# ifndef GLM_ENABLE_EXPERIMENTAL
21# pragma message("GLM: GLM_GTX_integer is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
22# else
23# pragma message("GLM: GLM_GTX_integer extension included")
24# endif
25#endif
26
27namespace glm
28{
31
34 GLM_FUNC_DECL int pow(int x, uint y);
35
38 GLM_FUNC_DECL int sqrt(int x);
39
42 GLM_FUNC_DECL unsigned int floor_log2(unsigned int x);
43
46 GLM_FUNC_DECL int mod(int x, int y);
47
50 template<typename genType>
51 GLM_FUNC_DECL genType factorial(genType const& x);
52
55 typedef signed int sint;
56
59 GLM_FUNC_DECL uint pow(uint x, uint y);
60
63 GLM_FUNC_DECL uint sqrt(uint x);
64
67 GLM_FUNC_DECL uint mod(uint x, uint y);
68
71 GLM_FUNC_DECL uint nlz(uint x);
72
74}//namespace glm
75
76#include "integer.inl"
GLM_FUNC_QUALIFIER vec< L, T, Q > sqrt(vec< L, T, Q > const &x)
Definition func_exponential.inl:128
GLM_FUNC_QUALIFIER vec< L, T, Q > pow(vec< L, T, Q > const &base, vec< L, T, Q > const &exponent)
Definition func_exponential.inl:72
GLM_FUNC_DECL unsigned int floor_log2(unsigned int x)
signed int sint
Definition integer.hpp:55
GLM_FUNC_DECL genType factorial(genType const &x)
Definition integer.inl:73
GLM_FUNC_DECL uint nlz(uint x)
Definition integer.inl:154
Core features
Definition common.hpp:21