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
New functions (added by #3561) _Add_overflow<Int> and _Multiply_overflow<Int> could be much faster when Int is:
Standard integer type. MSVC should consider implementing Clang's checked arithmetic builtins (__builtin_add_overflow and __builtin_mul_overflow). This would vastly improve performance and codegen.
Integer-class type. I believe that it is possible to implement those checked operations directly in _Signed128 and _Unsigned128, for example by modifying already existing functions (overflow could be detected during addition/multiplication?).
This requires further investigation.
The text was updated successfully, but these errors were encountered:
JMazurkiewicz
changed the title
_(Add|Multiply)_with_overflow_check can be much faster<ranges>: _(Add|Multiply)_with_overflow_check could be much faster
Apr 3, 2023
JMazurkiewicz
changed the title
<ranges>: _(Add|Multiply)_with_overflow_check could be much faster<ranges>: _(Add|Mul)_overflow could be much faster
May 2, 2023
New functions (added by #3561)
_Add_overflow<Int>
and_Multiply_overflow<Int>
could be much faster whenInt
is:Standard integer type. MSVC should consider implementing Clang's checked arithmetic builtins (
__builtin_add_overflow
and__builtin_mul_overflow
). This would vastly improve performance and codegen.Also tracked by DevCom-10326281.
Integer-class type. I believe that it is possible to implement those checked operations directly in
_Signed128
and_Unsigned128
, for example by modifying already existing functions (overflow could be detected during addition/multiplication?).This requires further investigation.
The text was updated successfully, but these errors were encountered: