44 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
45 # pragma message("GLM: GLM_GTX_fast_exponential extension included")
55 template <
typename genType>
56 GLM_FUNC_DECL genType
fastPow(genType x, genType y);
60 template <
typename T, precision P,
template <
typename, precision>
class vecType>
61 GLM_FUNC_DECL vecType<T, P>
fastPow(vecType<T, P>
const & x, vecType<T, P>
const & y);
65 template <
typename genTypeT,
typename genTypeU>
66 GLM_FUNC_DECL genTypeT
fastPow(genTypeT x, genTypeU y);
70 template <
typename T, precision P,
template <
typename, precision>
class vecType>
71 GLM_FUNC_DECL vecType<T, P>
fastPow(vecType<T, P>
const & x);
80 template <
typename T, precision P,
template <
typename, precision>
class vecType>
81 GLM_FUNC_DECL vecType<T, P>
fastExp(vecType<T, P>
const & x);
90 template <
typename T, precision P,
template <
typename, precision>
class vecType>
91 GLM_FUNC_DECL vecType<T, P>
fastLog(vecType<T, P>
const & x);
100 template <
typename T, precision P,
template <
typename, precision>
class vecType>
101 GLM_FUNC_DECL vecType<T, P>
fastExp2(vecType<T, P>
const & x);
105 template <
typename T>
110 template <
typename T, precision P,
template <
typename, precision>
class vecType>
111 GLM_FUNC_DECL vecType<T, P>
fastLog2(vecType<T, P>
const & x);
116 #include "fast_exponential.inl"
GLM_FUNC_DECL vecType< T, P > fastLog2(vecType< T, P > const &x)
Faster than the common log2 function but less accurate.
GLM_FUNC_DECL vecType< T, P > fastLog(vecType< T, P > const &x)
Faster than the common exp2 function but less accurate.
GLM_FUNC_DECL vecType< T, P > fastPow(vecType< T, P > const &x)
Faster than the common pow function but less accurate.
GLM_FUNC_DECL vecType< T, P > fastExp(vecType< T, P > const &x)
Faster than the common exp function but less accurate.
GLM_FUNC_DECL vecType< T, P > fastExp2(vecType< T, P > const &x)
Faster than the common exp2 function but less accurate.