mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 20:27:43 +00:00
cmath include; update hecl
This commit is contained in:
@@ -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
2
hecl
Submodule hecl updated: d81b9aecf5...39c85a807f
Reference in New Issue
Block a user