diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-29 17:24:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-29 17:59:57 +0300 |
commit | f315432679f760b71505e74dcb2185b7aef7a906 (patch) | |
tree | 07d45620464a2542cb28fbe773f652501e6ee6fb /src/utils | |
parent | cccb3e11663eb415b9b6c9a184e1c17762a2d989 (diff) | |
download | manaplus-f315432679f760b71505e74dcb2185b7aef7a906.tar.gz manaplus-f315432679f760b71505e74dcb2185b7aef7a906.tar.bz2 manaplus-f315432679f760b71505e74dcb2185b7aef7a906.tar.xz manaplus-f315432679f760b71505e74dcb2185b7aef7a906.zip |
change smaller letter literalt into capital letter.
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/mathutils.h | 8 |
1 files changed, 4 insertions, 4 deletions
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) |