Size now contains grid size of subdivisions, so size is never truncated

This commit is contained in:
Yousef Khadadeh 2025-09-16 09:35:03 +03:00
parent 83ff3f689d
commit 65b4f7116c
6 changed files with 63 additions and 36 deletions

View file

@ -87,7 +87,7 @@ namespace FixedPoint {
// Base should be a power of 2 to be accurate
template <typename T> T exp_int(const T& x, const T& base) {
return exp2(x * log2(base));
return exp2_int(x * log2_int(base));
}
template <typename T> T exp_int_accurate(uint64_t x, uint64_t base) {