Skip to content

Commit

Permalink
Add Sint128 type & libfuncs (#384)
Browse files Browse the repository at this point in the history
* Push progress

* Parse Sint8 result value

* Improve sub test + fix how signed values are compared against vm values

* Clippy

* Improve testing

* Fix

* Try stuff

* Fix typos

* Fix test values

* Add test & fix wide_mul

* First draft of diff libfunc

* Improve test

* Remove old code

* Add test

* Add Sint16 type + libfuncs

* fmt

* Push progress

* Remove uneeded intermidiate variables

* Update code

* Update code

* Add tests for i64 libfuncs

* Adjust test values

* Fix cairo programs

* fmt

* Remove old file

* Fix comment

* Add sint128 type + libfuncs

* Add tests

* Add tests
  • Loading branch information
fmoletta authored Dec 15, 2023
1 parent 3c6d762 commit ab5aa99
Show file tree
Hide file tree
Showing 8 changed files with 865 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libfuncs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ pub mod mem;
pub mod nullable;
pub mod pedersen;
pub mod poseidon;
pub mod sint128;
pub mod sint16;
pub mod sint32;
pub mod sint64;
Expand Down Expand Up @@ -215,7 +216,9 @@ where
CoreConcreteLibfunc::Sint64(info) => {
self::sint64::build(context, registry, entry, location, helper, metadata, info)
}
CoreConcreteLibfunc::Sint128(_) => todo!(),
CoreConcreteLibfunc::Sint128(info) => {
self::sint128::build(context, registry, entry, location, helper, metadata, info)
}
CoreConcreteLibfunc::Bytes31(_) => todo!(),
}
}
Expand Down
Loading

0 comments on commit ab5aa99

Please sign in to comment.