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/gtx/fast_square_root.inl | 38 +++++++++++++-------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'external/include/glm/gtx/fast_square_root.inl') diff --git a/external/include/glm/gtx/fast_square_root.inl b/external/include/glm/gtx/fast_square_root.inl index 73950ae..e988987 100644 --- a/external/include/glm/gtx/fast_square_root.inl +++ b/external/include/glm/gtx/fast_square_root.inl @@ -4,7 +4,7 @@ namespace glm { // fastSqrt - template + template GLM_FUNC_QUALIFIER genType fastSqrt(genType x) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'fastSqrt' only accept floating-point input"); @@ -12,32 +12,32 @@ namespace glm return genType(1) / fastInverseSqrt(x); } - template class vecType> - GLM_FUNC_QUALIFIER vecType fastSqrt(vecType const & x) + template + GLM_FUNC_QUALIFIER vec fastSqrt(vec const& x) { - return detail::functor1::call(fastSqrt, x); + return detail::functor1::call(fastSqrt, x); } // fastInversesqrt - template + template GLM_FUNC_QUALIFIER genType fastInverseSqrt(genType x) { # ifdef __CUDACC__ // Wordaround for a CUDA compiler bug up to CUDA6 - tvec1 tmp(detail::compute_inversesqrt::value>::call(tvec1(x))); + vec<1, T, Q> tmp(detail::compute_inversesqrt::value>::call(vec<1, genType, lowp>(x))); return tmp.x; # else - return detail::compute_inversesqrt::value>::call(tvec1(x)).x; + return detail::compute_inversesqrt<1, genType, lowp, detail::is_aligned::value>::call(vec<1, genType, lowp>(x)).x; # endif } - template class vecType> - GLM_FUNC_QUALIFIER vecType fastInverseSqrt(vecType const & x) + template + GLM_FUNC_QUALIFIER vec fastInverseSqrt(vec const& x) { - return detail::compute_inversesqrt::value>::call(x); + return detail::compute_inversesqrt::value>::call(x); } // fastLength - template + template GLM_FUNC_QUALIFIER genType fastLength(genType x) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'fastLength' only accept floating-point inputs"); @@ -45,8 +45,8 @@ namespace glm return abs(x); } - template class vecType> - GLM_FUNC_QUALIFIER T fastLength(vecType const & x) + template + GLM_FUNC_QUALIFIER T fastLength(vec const& x) { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'fastLength' only accept floating-point inputs"); @@ -54,27 +54,27 @@ namespace glm } // fastDistance - template + template GLM_FUNC_QUALIFIER genType fastDistance(genType x, genType y) { return fastLength(y - x); } - template class vecType> - GLM_FUNC_QUALIFIER T fastDistance(vecType const & x, vecType const & y) + template + GLM_FUNC_QUALIFIER T fastDistance(vec const& x, vec const& y) { return fastLength(y - x); } // fastNormalize - template + template GLM_FUNC_QUALIFIER genType fastNormalize(genType x) { return x > genType(0) ? genType(1) : -genType(1); } - template class vecType> - GLM_FUNC_QUALIFIER vecType fastNormalize(vecType const & x) + template + GLM_FUNC_QUALIFIER vec fastNormalize(vec const& x) { return x * fastInverseSqrt(dot(x, x)); } -- cgit v1.2.3