Re:Fast midpoint between two integers without overflow
by jcparkyn on Wednesday December 07, 2022 @03:28PM
(#33899793)
I think it would be reasonable to also have overflowing and checked versions of the operators, for cases where the compiler can't guarantee the size (e.g. mutable variables in loops).
Not so for loops and accumulator constructs.