-
Notifications
You must be signed in to change notification settings - Fork 160
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(hints): add NewHint#47 #1030
Merged
Merged
Conversation
This file contains 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
- uint384 - uint384_extension I need this changes for later tests
Pack and split were unified into a generic function in `uint_utils.rs`. UintNNN specific functions were changed to `uNNN_pack` and `uNNN_split`, that internally use the generic ones. Some macros were using items without specifying full path, and I fixed this. With this change a lot of imports weren't needed anymore, and so were removed to appease clippy. Also add the groundwork for the new hint to be implemented.
MegaRedHand
requested review from
igaray,
Oppen,
fmoletta,
entropidelic,
juanbono,
pefontana and
Juan-M-V
as code owners
April 21, 2023 16:15
Benchmark Results for unmodified programs 🚀
|
Closed
This reverts commit 7a1bea7.
Oppen
reviewed
Apr 21, 2023
Benchmark Results for modified programs 🚀
|
Oppen
approved these changes
Apr 24, 2023
Was using wrong pack function
fmoletta
reviewed
Apr 24, 2023
fmoletta
reviewed
Apr 24, 2023
fmoletta
reviewed
Apr 24, 2023
Co-authored-by: fmoletta <99273364+fmoletta@users.noreply.github.com>
pefontana
added
the
whitelisted-hint
Implementation of hint on whitelist directory
label
Apr 24, 2023
Codecov Report
@@ Coverage Diff @@
## main #1030 +/- ##
==========================================
- Coverage 98.08% 98.07% -0.01%
==========================================
Files 81 84 +3
Lines 33126 33275 +149
==========================================
+ Hits 32491 32635 +144
- Misses 635 640 +5
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
fmoletta
approved these changes
Apr 24, 2023
kariy
pushed a commit
to dojoengine/cairo-rs
that referenced
this pull request
Jun 23, 2023
* Refactor some cairo_programs as library - uint384 - uint384_extension I need this changes for later tests * Refactor pack and split, macro hygiene Pack and split were unified into a generic function in `uint_utils.rs`. UintNNN specific functions were changed to `uNNN_pack` and `uNNN_split`, that internally use the generic ones. Some macros were using items without specifying full path, and I fixed this. With this change a lot of imports weren't needed anymore, and so were removed to appease clippy. Also add the groundwork for the new hint to be implemented. * Add NewHint#47 * Update changelog * Add stdlib prelude import * Import HashMap from stdlib * Fix contracts * Fix wasm-tests * Change bitmask to `u128::MAX` * Revert "Change bitmask to `u128::MAX`" This reverts commit 7a1bea7. * Compare memory_holes with correct amount * Rename uint512 -> fq, fq -> fq_test; Add comment * Fix contract compilation errors * Fix compilation error * Fix cairo_run_fq test * Move changelog entry * Fix failing tests * Fix compilation errors * Fix test error Was using wrong pack function * Define empty mains on libraries * Use bare array instead of vec Co-authored-by: fmoletta <99273364+fmoletta@users.noreply.github.com> * Make pack and split methods instead of functions * Fix merge errors * Fix errors and add BigInt3::split86 * Make u512_pack and split functions into methods * Re-add disappeared newline inside hint * Fix compilation errors --------- Co-authored-by: fmoletta <99273364+fmoletta@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
This PR adds the missing hint NewHint#47, now known as
UINT512_UNSIGNED_DIV_REM
.In addition to that:
uint384
anduint384_extension
cairo contracts, to reuse them in other contracts.uint_utils.rs
, and changesUintNNN
specific pack and split to use the generic ones.