- Main Page
- Related Pages
- Modules
- Files

- File List

fast_exponential.hpp
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39 #ifndef GLM_GTX_fast_exponential
40 #define GLM_GTX_fast_exponential GLM_VERSION
41
42 // Dependency:
43 #include "../glm.hpp"
44 #include "../gtc/half_float.hpp"
45
46 #if(defined(GLM_MESSAGES) && !defined(glm_ext))
47 # pragma message("GLM: GLM_GTX_fast_exponential extension included")
48 #endif
49
50 namespace glm
51 {
54
57 template <typename genType>
58 genType fastPow(
59 genType const & x,
60 genType const & y);
61
64 template <typename genTypeT, typename genTypeU>
65 genTypeT fastPow(
66 genTypeT const & x,
67 genTypeU const & y);
68
71 template <typename T>
72 T fastExp(const T& x);
73
76 template <typename T>
77 T fastLog(const T& x);
78
81 template <typename T>
82 T fastExp2(const T& x);
83
86 template <typename T>
87 T fastLog2(const T& x);
88
91 template <typename T>
92 T fastLn(const T& x);
93
95 }//namespace glm
96
97 #include "fast_exponential.inl"
98
99 #endif//GLM_GTX_fast_exponential