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

feat: add is power of two checker #257

Merged
merged 2 commits into from
Jan 25, 2024

Conversation

Soptq
Copy link
Contributor

@Soptq Soptq commented Jan 24, 2024

This PR adds is_power_of_two() checker.

Pull Request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build-related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Issue Number: N/A

What is the new behavior?

  • checking whether a number is power of two.
  • all tests are passed.

Does this introduce a breaking change?

  • Yes
  • No

Other information

@Soptq Soptq requested a review from 0xLucqs as a code owner January 24, 2024 15:15
src/math/src/is_power_of_two.cairo Outdated Show resolved Hide resolved
src/math/src/is_power_of_two.cairo Outdated Show resolved Hide resolved
@0xLucqs
Copy link
Collaborator

0xLucqs commented Jan 25, 2024

can you rebase please

@0xLucqs 0xLucqs merged commit 4327786 into keep-starknet-strange:main Jan 25, 2024
3 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants