GLM  0.9.5
fast_exponential.hpp
Go to the documentation of this file.
1 
39 #ifndef GLM_GTX_fast_exponential
40 #define GLM_GTX_fast_exponential
41 
42 // Dependency:
43 #include "../glm.hpp"
44 
45 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
46 # pragma message("GLM: GLM_GTX_fast_exponential extension included")
47 #endif
48 
49 namespace glm
50 {
53 
56  template <typename genType>
57  genType fastPow(
58  genType const & x,
59  genType const & y);
60 
63  template <typename genTypeT, typename genTypeU>
64  genTypeT fastPow(
65  genTypeT const & x,
66  genTypeU const & y);
67 
70  template <typename T>
71  T fastExp(const T& x);
72 
75  template <typename T>
76  T fastLog(const T& x);
77 
80  template <typename T>
81  T fastExp2(const T& x);
82 
85  template <typename T>
86  T fastLog2(const T& x);
87 
90  template <typename T>
91  T fastLn(const T& x);
92 
94 }//namespace glm
95 
96 #include "fast_exponential.inl"
97 
98 #endif//GLM_GTX_fast_exponential
T fastLn(const T &x)
Faster than the common ln function but less accurate.
T fastLog(const T &x)
Faster than the common log function but less accurate.
T fastExp(const T &x)
Faster than the common exp function but less accurate.
T fastExp2(const T &x)
Faster than the common exp2 function but less accurate.
genType fastPow(genType const &x, genType const &y)
Faster than the common pow function but less accurate.
T fastLog2(const T &x)
Faster than the common log2 function but less accurate.