From 6b1684d33dec02eb6308bb3d8d3707f4d5252ba5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 30 Oct 2012 01:19:46 +0300 Subject: Add unused warnings to some files. --- src/utils/mathutils.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/utils/mathutils.h') diff --git a/src/utils/mathutils.h b/src/utils/mathutils.h index aa6dcecea..1fc55e859 100644 --- a/src/utils/mathutils.h +++ b/src/utils/mathutils.h @@ -27,6 +27,8 @@ #include #include +#include "localconsts.h" + static const uint16_t crc_table[256] = { 0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50a5, 0x60c6, 0x70e7, @@ -63,6 +65,14 @@ static const uint16_t crc_table[256] = 0x6e17, 0x7e36, 0x4e55, 0x5e74, 0x2e93, 0x3eb2, 0x0ed1, 0x1ef0 }; +inline uint16_t getCrc16(const std::string &str) A_WARN_UNUSED; +inline float fastInvSqrt(float x) A_WARN_UNUSED; +inline float fastSqrt(const float x) A_WARN_UNUSED; +inline float weightedAverage(const float n1, const float n2, + const float w) A_WARN_UNUSED; +inline int roundDouble(const double v) A_WARN_UNUSED; +inline int powerOfTwo(const int input) A_WARN_UNUSED; + inline uint16_t getCrc16(const std::string &str) { size_t f = str.size(); -- cgit v1.2.3-70-g09d2