From 10d47cef56fbeae7d1e15657a94fe1ffa49978a5 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Sun, 28 Jun 2015 18:53:50 +0200 Subject: [PATCH] Replaced some fabsf() calls by std::abs --- src/subsurface/singlescatter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/subsurface/singlescatter.cpp b/src/subsurface/singlescatter.cpp index dcadd807..2b2e2d69 100644 --- a/src/subsurface/singlescatter.cpp +++ b/src/subsurface/singlescatter.cpp @@ -744,8 +744,8 @@ public: const Float D = cross(L_p, L_s).length(); // For debug/explanation only: result without the ray-differentials - // D = (domegaV + m_eta * domegaL) * (fabsf(cosThetaL/cosThetaV)*domegaV - // + fabsf(cosThetaV/cosThetaL)*m_eta*domegaL); + // D = (domegaV + m_eta * domegaL) * (std::abs(cosThetaL/cosThetaV)*domegaV + // + std::abs(cosThetaV/cosThetaL)*m_eta*domegaL); return result / D; } @@ -1480,8 +1480,8 @@ public: attenuation(m_sigmaT, -(dist + dV)); const Float D = (dV + m_eta * dL) * - (fabsf(cosThetaL / cosThetaV) * dV + - fabsf(cosThetaV / cosThetaL) * m_eta * dL); + (std::abs(cosThetaL / cosThetaV) * dV + + std::abs(cosThetaV / cosThetaL) * m_eta * dL); result += ((1 - F) / D) * phase * value * weight; } } else {