Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

♻️ Use Mutable internal Function Parameters #267

Merged
merged 4 commits into from
Aug 14, 2024

Conversation

pcaversaccio
Copy link
Owner

@pcaversaccio pcaversaccio commented Aug 14, 2024

🕓 Changelog

Given that the function parameters of internal functions are mutable (as implemented here), this PR refines the internal logic of the _log2, _log10, _log256, _wad_ln, and _wad_exp functions to align with this behaviour. Additionally, it removes the unnecessary denominator variable declaration in the erc2981 contract and addresses minor formatting issues in code comments.

🐶 Cute Animal Picture

image

Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
@pcaversaccio pcaversaccio self-assigned this Aug 14, 2024
@pcaversaccio pcaversaccio added documentation 📖 Improvements or additions to documentation optimisation ⚡️ Code optimisations (e.g. gas improvements) refactor/cleanup ♻️ Code refactorings and cleanups labels Aug 14, 2024
Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
@pcaversaccio pcaversaccio changed the title ♻️ Make _log2 and _log256 Branchless ♻️ Use Mutable internal Function Parameters Aug 14, 2024
@pcaversaccio pcaversaccio added this to the 0.1.1 milestone Aug 14, 2024
Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
@pcaversaccio pcaversaccio merged commit 846d2ec into main Aug 14, 2024
14 checks passed
@pcaversaccio pcaversaccio deleted the refactor/internal-function-params-mutable branch August 14, 2024 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation 📖 Improvements or additions to documentation optimisation ⚡️ Code optimisations (e.g. gas improvements) refactor/cleanup ♻️ Code refactorings and cleanups
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant