cmath include; update hecl

This commit is contained in:
Jack Andersen 2016-09-11 08:38:44 -10:00
parent bfbdf645d5
commit 2a2b248aa2
2 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,7 @@
#define _DNACOMMON_ANIMBITSTREAM_HPP_ #define _DNACOMMON_ANIMBITSTREAM_HPP_
#include "DNACommon.hpp" #include "DNACommon.hpp"
#include <cmath>
namespace DataSpec namespace DataSpec
{ {
@ -42,7 +43,7 @@ struct QuantizedValue
atInt32 delta = std::abs(v[idx] - other.v[idx]); atInt32 delta = std::abs(v[idx] - other.v[idx]);
if (delta == 0) if (delta == 0)
return 1; return 1;
return int(ceilf(log2f(delta))) + 1; return int(std::ceil(std::log2(delta))) + 1;
} }
}; };
struct QuantizedRot struct QuantizedRot

2
hecl

@ -1 +1 @@
Subproject commit d81b9aecf540e6edfcbf15bc222c0a0befb36580 Subproject commit 39c85a807fd8a30e22078447ef4d4668b39a2c8f