Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also fix divide-by-zero in mod_i, since mod_i is implemented by signed division anyway (and n % 0 has no mathematical sense).
- Loading branch information
Showing
2 changed files
with
36 additions
and
16 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
5b574f8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hello @bdw, I would suggest reverting this commit, as per rakudo/rakudo@98c32aaa8b and Raku/old-design-docs@ed80b33d5e .
5b574f8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I can be excused in first reading up on the preceeding discussion. Most of this commit is actually about rounding-towards-negative-infinity of integer division as is done in MoarVM. If you really wish integer division to cause a hardware level exception, note that (currently) it will not be caught, it will just bring down your VM. Thanks for bringing it to my attention.