-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move checked arithmetic to the standard library
Instead of implementing checked arithmetic through compiler intrinsics, we now implement this in the standard library. This in turn makes it easier to implement various checked counterparts of the default operations (e.g. Int.checked_div), and simplifies the LLVM code generator. This commit also adds various checked operations, such as Int.checked_add, Int.checked_sub, and a few others. Changelog: changed
- Loading branch information
1 parent
58e7a4a
commit 05aff9a
Showing
7 changed files
with
359 additions
and
249 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
Oops, something went wrong.