-
Notifications
You must be signed in to change notification settings - Fork 375
fix: wrapping mul support for u128 #7941
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
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
d8dc2ab
wrapping mul support for u128
guipublic e16f163
use trait for wrapping mul based on type
guipublic 86a4295
code review
guipublic fcaafb5
Merge branch 'master' into gd/issue_7528
guipublic f74b8a6
Code review
guipublic 8addddb
code review: move trait to ops
guipublic 6643c08
Merge branch 'master' into gd/issue_7528
guipublic abd5d12
Wrapping operations as trait
guipublic b80a192
Use a trait per wrapping operation
guipublic d63110b
update test
guipublic 0bac232
update documentation
guipublic aee2da1
Merge branch 'master' into gd/issue_7528
guipublic 9543d20
chore: group trait impls by operations
TomAFrench 494a178
chore: replace impl for bool with one for `u1`
TomAFrench 6860954
chore: optimize 128 bit wrapping arithmetic
TomAFrench c2ac60c
chore: no abusing the type system!
TomAFrench 3a8e9ae
.
TomAFrench 1f628c0
.
TomAFrench 99bca46
Update docs/docs/noir/concepts/data_types/integers.md
TomAFrench 6c709e8
Update docs/docs/noir/concepts/data_types/integers.md
TomAFrench 0831fd3
Merge branch 'master' into gd/issue_7528
guipublic 9dae865
format
guipublic bac28ce
Merge branch 'master' into gd/issue_7528
guipublic 105de45
typo
guipublic a439b7d
Merge branch 'master' into gd/issue_7528
guipublic 123a950
update snapshots
guipublic 7754f01
snapshots..
guipublic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| pub(crate) mod arith; | ||
| pub(crate) mod bit; | ||
|
|
||
| pub use arith::{Add, Div, Mul, Neg, Rem, Sub}; | ||
| pub use arith::{Add, Div, Mul, Neg, Rem, Sub, WrappingAdd, WrappingMul, WrappingSub}; | ||
| pub use bit::{BitAnd, BitOr, BitXor, Not, Shl, Shr}; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.