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 isPowOf2() to LibBit #86

Merged
merged 3 commits into from
Oct 31, 2022
Merged

Conversation

PraneshASP
Copy link
Collaborator

As mentioned here, the base branch is updated to dev.

Note: Running forge fmt is updating all the test files (54). I think it should be a separate PR..

cc: @clabby

Copy link
Member

@clabby clabby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@clabby clabby merged commit 0d990b4 into huff-language:dev Oct 31, 2022
Comment on lines +150 to +152
dup1 // [x,x]
0x01 // [1,x,x]
swap1 // [x,1,x]
Copy link
Collaborator

@MathisGD MathisGD Oct 31, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that you could save one swap

Suggested change
dup1 // [x,x]
0x01 // [1,x,x]
swap1 // [x,1,x]
0x01 // [1,x]
dup2 // [x,1,x]

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice spot! Feel free to open up a quick PR with the improvement 😄

@MathisGD MathisGD mentioned this pull request Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants