You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* refactor: replace is_power_of_ten lookup tables with log10_floor + pow macro
Closes#295.
Public API unchanged. The new public(package) macro `is_power_of_ten!` in
internal/macros.move computes the predicate via the existing log10_floor
and std::u256::pow primitives, eliminating the duplicated power-of-ten
constants that previously caused the missing 10^77 entry (fixed in #291).
Only u128 and u256 wrappers are retargeted per the team's gas-report
decision; u8 through u64 keep their inline disjunctions.
* style: apply prettier-move and drop INV-N comment markers
* chore: drop CHANGELOG entry for is_power_of_ten refactor
* ref: use receiver syntax for u256.pow in is_power_of_ten macro
* ref: apply suggestion from @0xNeshi
Co-authored-by: Nenad <nenad.misic@openzeppelin.com>
* fix: fmt
* docs: update docs
* chore: test cleanup
* test: cleanup
* Remove the orphaned "binary_search" internal helper macro and its tests
* Add more test cases
* Format files
---------
Co-authored-by: Nenad <nenad.misic@openzeppelin.com>
Co-authored-by: immrsd <immrsd.eth@gmail.com>
0 commit comments