48 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
49 # pragma message("GLM: GLM_GTX_fast_exponential extension included")
59 template <
typename genType>
60 GLM_FUNC_DECL genType
fastPow(genType x, genType y);
64 template <
typename T, precision P,
template <
typename, precision>
class vecType>
65 GLM_FUNC_DECL vecType<T, P>
fastPow(vecType<T, P>
const & x, vecType<T, P>
const & y);
69 template <
typename genTypeT,
typename genTypeU>
70 GLM_FUNC_DECL genTypeT
fastPow(genTypeT x, genTypeU y);
74 template <
typename T, precision P,
template <
typename, precision>
class vecType>
75 GLM_FUNC_DECL vecType<T, P>
fastPow(vecType<T, P>
const & x);
84 template <
typename T, precision P,
template <
typename, precision>
class vecType>
85 GLM_FUNC_DECL vecType<T, P>
fastExp(vecType<T, P>
const & x);
94 template <
typename T, precision P,
template <
typename, precision>
class vecType>
95 GLM_FUNC_DECL vecType<T, P>
fastLog(vecType<T, P>
const & x);
104 template <
typename T, precision P,
template <
typename, precision>
class vecType>
105 GLM_FUNC_DECL vecType<T, P>
fastExp2(vecType<T, P>
const & x);
109 template <
typename T>
114 template <
typename T, precision P,
template <
typename, precision>
class vecType>
115 GLM_FUNC_DECL vecType<T, P>
fastLog2(vecType<T, P>
const & x);
120 #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 > fastLog2(vecType< T, P > const &x)
Faster than the common log2 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.