-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use optimized overflow operation almost everywhere (#2405)
Use the overflow result operations instead of doing the math twice. This is related to the performance degradation we are seeing in the toolchain upgrade: #2293 Co-authored-by: Michael Tautschnig <[email protected]>
- Loading branch information
1 parent
47afab5
commit 24c7076
Showing
5 changed files
with
112 additions
and
73 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
Failed Checks: attempt to divide by zero | ||
Failed Checks: attempt to calculate the remainder with a divisor of zero | ||
Failed Checks: arithmetic overflow on unsigned addition | ||
Failed Checks: arithmetic overflow on unsigned subtraction | ||
Failed Checks: arithmetic overflow on unsigned multiplication | ||
Failed Checks: shift distance too large | ||
Failed Checks: attempt to add with overflow | ||
Failed Checks: attempt to subtract with overflow | ||
Failed Checks: attempt to multiply with overflow | ||
Failed Checks: attempt to shift right with overflow | ||
Failed Checks: attempt to shift left with overflow | ||
Failed Checks: shift distance too large |