2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 03:07:41 +00:00

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