Size now contains grid size of subdivisions, so size is never truncated
This commit is contained in:
parent
83ff3f689d
commit
65b4f7116c
6 changed files with 63 additions and 36 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue