19 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
20 # pragma message("GLM: GLM_GTX_fast_exponential extension included")
30 template <
typename genType>
31 GLM_FUNC_DECL genType
fastPow(genType x, genType y);
35 template <
typename T, precision P,
template <
typename, precision>
class vecType>
36 GLM_FUNC_DECL vecType<T, P>
fastPow(vecType<T, P>
const & x, vecType<T, P>
const & y);
40 template <
typename genTypeT,
typename genTypeU>
41 GLM_FUNC_DECL genTypeT
fastPow(genTypeT x, genTypeU y);
45 template <
typename T, precision P,
template <
typename, precision>
class vecType>
46 GLM_FUNC_DECL vecType<T, P>
fastPow(vecType<T, P>
const & x);
55 template <
typename T, precision P,
template <
typename, precision>
class vecType>
56 GLM_FUNC_DECL vecType<T, P>
fastExp(vecType<T, P>
const & x);
65 template <
typename T, precision P,
template <
typename, precision>
class vecType>
66 GLM_FUNC_DECL vecType<T, P>
fastLog(vecType<T, P>
const & x);
75 template <
typename T, precision P,
template <
typename, precision>
class vecType>
76 GLM_FUNC_DECL vecType<T, P>
fastExp2(vecType<T, P>
const & x);
85 template <
typename T, precision P,
template <
typename, precision>
class vecType>
86 GLM_FUNC_DECL vecType<T, P>
fastLog2(vecType<T, P>
const & x);
91 #include "fast_exponential.inl"
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.
GLM_FUNC_DECL vecType< T, P > fastLog2(vecType< T, P > const &x)
Faster than the common log2 function but less accurate.