You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There should be a way to perform basic arithmetic operations which can potentially overflow, such as addition, subtraction, and multiplication, and get the result as well as a boolean indicating whether it overflowed.
There should be a way to perform basic arithmetic operations which can potentially overflow, such as addition, subtraction, and multiplication, and get the result as well as a boolean indicating whether it overflowed.
See for inspiration:
http://clang.llvm.org/docs/LanguageExtensions.html#checked-arithmetic-builtins
In debug mode, we might codegen this every time and do a panic if overflow occurs.
The text was updated successfully, but these errors were encountered: