News for hackers. Stuff that matters.
Re:Fast midpoint between two integers without overflow by andrewla on Wednesday December 07, 2022 @12:28PM (#33897248)
> Since the width of the operands are known ahead of time

Not so for loops and accumulator constructs.

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).