From f315432679f760b71505e74dcb2185b7aef7a906 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 29 Sep 2013 17:24:52 +0300 Subject: change smaller letter literalt into capital letter. --- src/utils/mathutils.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/utils/mathutils.h') diff --git a/src/utils/mathutils.h b/src/utils/mathutils.h index 924a26fc4..094ae984c 100644 --- a/src/utils/mathutils.h +++ b/src/utils/mathutils.h @@ -100,23 +100,23 @@ inline uint16_t getCrc16(const std::string &str) inline float fastInvSqrt(float x) { union { int i; float x; } tmp; - const float xhalf = 0.5f * x; + const float xhalf = 0.5F * x; tmp.x = x; tmp.i = 0x5f375a86 - (tmp.i >> 1); x = tmp.x; - x = x * (1.5f - xhalf * x * x); + x = x * (1.5F - xhalf * x * x); return x; } inline float fastSqrt(const float x) { - return 1.0f / fastInvSqrt(x); + return 1.0F / fastInvSqrt(x); } constexpr inline float weightedAverage(const float n1, const float n2, const float w) { - return w < 0.0f ? n1 : (w > 1.0f ? n2 : w * n2 + (1.0f - w) * n1); + return w < 0.0F ? n1 : (w > 1.0F ? n2 : w * n2 + (1.0F - w) * n1); } constexpr inline int roundDouble(const double v) -- cgit v1.2.3-60-g2f50