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

Right shift #3

Merged
merged 6 commits into from
Jun 6, 2018
Merged

Right shift #3

merged 6 commits into from
Jun 6, 2018

Conversation

paulyoung
Copy link
Owner

The existing zero-fill right shift functions are incorrectly implemented.

This uses the existing (correct) implementation fo zshr from Data.Int.Bits for Int, and just aliases shr for BigInt for now.

See purescript-contrib/purescript-bigints#21 and peterolson/BigInteger.js#137 for progress there.

@paulyoung paulyoung self-assigned this Jun 6, 2018
@paulyoung
Copy link
Owner Author

Based on the test failure, I guess the implementation I had was at least correct some of the time.

@paulyoung paulyoung merged commit 2115d7f into master Jun 6, 2018
@paulyoung paulyoung deleted the paulyoung/right-shift branch June 6, 2018 06:45
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.

1 participant