News for hackers. Stuff that matters.
Re:Fast midpoint between two integers without overflow by TheRealPomax on Wednesday December 07, 2022 @11:33AM (#33896392)
if you're going that far, why bother with a "next largest" that's more than 1 byte larger? If you're just using it for intermediate values, just uplift that int16 to an int24, or that int64 to an int72, they're only there for as long as the LHS/RHS needs to evaluate: they're not getting stored, no need to use double the memory allocation.

There are no comments on this comment yet.