From 6f67371bb1b46579ae837d0e0c61ac1b291be743 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Sat, 13 Jan 2018 07:51:33 +0500 Subject: Directory renamed --- external/include/glm/detail/func_exponential.inl | 146 +++++++++++++++++++++++ 1 file changed, 146 insertions(+) create mode 100644 external/include/glm/detail/func_exponential.inl (limited to 'external/include/glm/detail/func_exponential.inl') diff --git a/external/include/glm/detail/func_exponential.inl b/external/include/glm/detail/func_exponential.inl new file mode 100644 index 0000000..227fe91 --- /dev/null +++ b/external/include/glm/detail/func_exponential.inl @@ -0,0 +1,146 @@ +/// @ref core +/// @file glm/detail/func_exponential.inl + +#include "func_vector_relational.hpp" +#include "_vectorize.hpp" +#include +#include +#include + +namespace glm{ +namespace detail +{ +# if GLM_HAS_CXX11_STL + using std::log2; +# else + template + genType log2(genType Value) + { + return std::log(Value) * static_cast(1.4426950408889634073599246810019); + } +# endif + + template class vecType, bool isFloat, bool Aligned> + struct compute_log2 + { + GLM_FUNC_QUALIFIER static vecType call(vecType const & vec) + { + return detail::functor1::call(log2, vec); + } + }; + + template