19 #ifndef GLM_ENABLE_EXPERIMENTAL
20 # error "GLM: GLM_GTX_fast_exponential is an experimetal extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
23 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
24 # pragma message("GLM: GLM_GTX_fast_exponential extension included")
34 template <
typename genType>
35 GLM_FUNC_DECL genType
fastPow(genType x, genType y);
39 template <
typename T, precision P,
template <
typename, precision>
class vecType>
40 GLM_FUNC_DECL vecType<T, P>
fastPow(vecType<T, P>
const & x, vecType<T, P>
const & y);
44 template <
typename genTypeT,
typename genTypeU>
45 GLM_FUNC_DECL genTypeT
fastPow(genTypeT x, genTypeU y);
49 template <
typename T, precision P,
template <
typename, precision>
class vecType>
50 GLM_FUNC_DECL vecType<T, P>
fastPow(vecType<T, P>
const & x);
59 template <
typename T, precision P,
template <
typename, precision>
class vecType>
60 GLM_FUNC_DECL vecType<T, P>
fastExp(vecType<T, P>
const & x);
69 template <
typename T, precision P,
template <
typename, precision>
class vecType>
70 GLM_FUNC_DECL vecType<T, P>
fastLog(vecType<T, P>
const & x);
79 template <
typename T, precision P,
template <
typename, precision>
class vecType>
80 GLM_FUNC_DECL vecType<T, P>
fastExp2(vecType<T, P>
const & x);
89 template <
typename T, precision P,
template <
typename, precision>
class vecType>
90 GLM_FUNC_DECL vecType<T, P>
fastLog2(vecType<T, P>
const & x);
95 #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.