From 2877f4eda3d1b0c7431039e3142ecf1a282a34b1 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Tue, 21 Aug 2018 20:40:38 +0500 Subject: Update glm to 0.9.9.0 --- external/include/glm/detail/func_exponential.inl | 96 +++++++++++++----------- 1 file changed, 51 insertions(+), 45 deletions(-) (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 index 227fe91..b962674 100644 --- a/external/include/glm/detail/func_exponential.inl +++ b/external/include/glm/detail/func_exponential.inl @@ -1,7 +1,7 @@ /// @ref core /// @file glm/detail/func_exponential.inl -#include "func_vector_relational.hpp" +#include "../vector_relational.hpp" #include "_vectorize.hpp" #include #include @@ -13,50 +13,52 @@ namespace detail # if GLM_HAS_CXX11_STL using std::log2; # else - template + template genType log2(genType Value) { return std::log(Value) * static_cast(1.4426950408889634073599246810019); } # endif - template class vecType, bool isFloat, bool Aligned> + template struct compute_log2 { - GLM_FUNC_QUALIFIER static vecType call(vecType const & vec) + GLM_FUNC_QUALIFIER static vec call(vec const& v) { - return detail::functor1::call(log2, vec); + GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'log2' only accept floating-point inputs. Include for integer inputs."); + + return detail::functor1::call(log2, v); } }; - template