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

Add bit operations in math lib #205

Open
uri-99 opened this issue Dec 29, 2023 · 0 comments
Open

Add bit operations in math lib #205

uri-99 opened this issue Dec 29, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@uri-99
Copy link
Collaborator

uri-99 commented Dec 29, 2023

Bit shifting, right and left.
AND, OR, XOR, NOT

Some are already supported by Cairo, but others (like bit shifting) are not.

Operations should be compatible with u16...u256 and i16....i256.

After implementing, the solution should be applied where appropriate (for example in tick_bitmap.cairo, the function calculate_word(tick) is a mock of bit shifting)

@uri-99 uri-99 added enhancement New feature or request good first issue Good for newcomers labels Dec 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant