-
Notifications
You must be signed in to change notification settings - Fork 49
Implement QM31 libfuncs #1429
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
Open
DiegoCivi
wants to merge
93
commits into
main
Choose a base branch
from
qm31-libfuncs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Implement QM31 libfuncs #1429
Changes from 85 commits
Commits
Show all changes
93 commits
Select commit
Hold shift + click to select a range
14ea8e3
Add qm31 type
DiegoCivi 825225e
Begin with libfuncs
DiegoCivi 74b2797
Fix bits in type
DiegoCivi af9f37b
Add pack libfunc
DiegoCivi f6a0c9f
Add unpack libfunc
DiegoCivi 3b4340f
Add const libfunc
DiegoCivi a6e9dd4
Add tests
DiegoCivi e7b3850
Implement QM31 cases for TypeBuilder methods
DiegoCivi 9d7f395
Implement from_ptr for QM31
DiegoCivi e9a1335
Add comments
DiegoCivi afa4a4f
Fix const libfunc and add test
DiegoCivi 8a1c16e
Merge branch 'main' into qm31-libfuncs
DiegoCivi 61db908
Add is_zero libfunc
DiegoCivi 4ada9d7
Merge branch 'qm31-libfuncs' of github.com:lambdaclass/cairo_native i…
DiegoCivi 7a9b3d7
Fix test imports
DiegoCivi fd1a8a0
Implement to_bytes for qm31
DiegoCivi ce05b18
Begin runtime implementation of QM31 add
DiegoCivi 2af7a8e
Bump types-rs
DiegoCivi 8f0eda8
Implement QM31 add libfunc on runtime
DiegoCivi 844c623
Implement QM31 sub on runtime
DiegoCivi 08087bd
Move pack implementation to runtime
DiegoCivi ba78b1f
Stop filtering bit
DiegoCivi a130923
Add test case for QM31 pack
DiegoCivi 8c302fd
Implement QM31 mul libfunc on runtime
DiegoCivi 1d86a02
Implement QM31 div libfunc on runtime
DiegoCivi bcfbe4b
Move QM31 is_zero libfunc to runtime
DiegoCivi 9321093
Fix test from div libfunc
DiegoCivi 8b72c71
Add safety comment
DiegoCivi 7d302a8
Implement QM31 from_m31 libfunc on runtime
DiegoCivi 73847b0
Add tests with big coefficients
DiegoCivi 6f070ae
Remove repeated code from binary_op libfunc
DiegoCivi f0b6d56
Unify runtime functions for binary ops
DiegoCivi 5f5687a
Merge branch 'main' into qm31-libfuncs
DiegoCivi a54d257
Revert "Move pack implementation to runtime"
DiegoCivi d86684b
Refactor tests
DiegoCivi 2ec1830
Allow many arguments
DiegoCivi d13b8b7
Remove TODOs
DiegoCivi 0b9ac9d
Fix clippy
DiegoCivi b8e234b
Merge branch 'qm31-libfuncs' of github.com:lambdaclass/cairo_native i…
DiegoCivi 760d5fd
Bump types-rs to 0.2.4
DiegoCivi 78c2bbb
Add some docs
DiegoCivi 5575223
Refactor match of bin_op libfunc
DiegoCivi 28828c5
Refactor of from_ptr for qm31
DiegoCivi 611fd6a
Refactor of binary operations libfunc
DiegoCivi 00d8eb9
Do allocations on entry
DiegoCivi c5bb477
Use 32 bits for m31 instead of 31
DiegoCivi 108e2b3
Add more docu
DiegoCivi a9669fd
Multiple runtime funcs for bin ops
DiegoCivi 868918c
Revert "Use 32 bits for m31 instead of 31"
DiegoCivi 690e9cc
Refactor of runtime for binary op
DiegoCivi 3cd1ff4
Use array instead of struct
DiegoCivi 9846975
Remove debug print
DiegoCivi 798033b
Move from_m31 libfunc to mlir
DiegoCivi 8fa7638
Move is_zero libfunc to mlir
DiegoCivi 1ea5f87
Revert "Move is_zero libfunc to mlir"
DiegoCivi 1375c60
Use raw build for qm31
DiegoCivi 8564423
Fix clippy
DiegoCivi 78fd6a0
Fix from_m31
DiegoCivi 22a81fd
Revert "Revert "Move is_zero libfunc to mlir""
DiegoCivi b91ccb5
Use as_representative
DiegoCivi 8096265
Fix clippy
DiegoCivi 79f5716
Refactor of to_representative_coefficients()
DiegoCivi 2e551c4
Use insert_values()
DiegoCivi c381ec0
Add m31_prime edge case tests
DiegoCivi 173a1f1
Fix TypeBuilder and parse_result()
DiegoCivi a19285a
Fix clippy
DiegoCivi 14a2ba6
Fix x86 segfault
DiegoCivi 470c2c3
Update src/libfuncs/qm31.rs
DiegoCivi ece346a
Update src/libfuncs/qm31.rs
DiegoCivi 8a7fcda
Update src/libfuncs/qm31.rs
DiegoCivi 7030a3c
Update src/libfuncs/qm31.rs
DiegoCivi fd149db
Fix parse_result implementation
DiegoCivi 15b85f2
Merge branch 'qm31-libfuncs' of github.com:lambdaclass/cairo_native i…
DiegoCivi daccb07
Add comments
DiegoCivi c41ad6f
Refactor of bin op libfunc
DiegoCivi 5a1489e
Fix clippy
DiegoCivi b7b0bd0
Comments
DiegoCivi da3ed95
Use expect
DiegoCivi 62593b4
Implement to_bytes
DiegoCivi 8504fa7
Refactor tests
DiegoCivi 714a33c
Update corelib patch
DiegoCivi d6d8ff8
Implement m31 libfuncs
DiegoCivi d62463f
Fix m31 add and add tests for m31 libfuncs
DiegoCivi 9cfb633
Add docu
DiegoCivi d12910d
Simple changes
DiegoCivi b030f5e
Remove unnecessary extui in m31_sub
DiegoCivi 40c8a43
Minor changes
DiegoCivi 3a2bcaa
Use 31 bits instead of 64 in m31 egcd
DiegoCivi 3b165de
Merge branch 'main' into qm31-libfuncs
gabrielbosio d7454bf
Apply suggestions from code review
DiegoCivi 410c29a
Merge branch 'qm31-libfuncs' of github.com:lambdaclass/cairo_native i…
DiegoCivi cf81a58
Build qm31 type with registry
DiegoCivi 6b5e32e
Fix comments
DiegoCivi 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
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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.