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

refactor: optimize bitset #437

Open
pscott opened this issue Jul 5, 2023 · 0 comments
Open

refactor: optimize bitset #437

pscott opened this issue Jul 5, 2023 · 0 comments
Labels

Comments

@pscott
Copy link
Contributor

pscott commented Jul 5, 2023

We compute mask by using the pow method but we could use some bitwise operators there (need to check if index > 128 and do the bitshifting accordingly!)

let mask = pow(u256 { low: 2_u128, high: 0_u128 }, index);

@pscott pscott added the cairo1 label Jul 5, 2023
@pscott pscott added blocked and removed cairo1 labels Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant