Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mypyc] Basic test-only support for i32 and i64 (#13018)
Basic support for arithmetic, bitwise and comparison ops using native int types i32 and i64. Also support some implicit coercions between int and native int types. There are still various gaps in the functionality, and that's why the feature is test-only so far. Division and modulus ops require jumping through some hoops to make the behavior with negative operands match Python semantics. This can already show some improvements in benchmarks (using hacks these can be used outside tests). I'll post figures once the implementation is more complete. Work on mypyc/mypyc#837.
- Loading branch information
Showing
18 changed files
with
3,019 additions
and
43 deletions.
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.