News for hackers. Stuff that matters.
Re:The gold standard of optimization: A look under the hood ... by dmitrygr on Monday March 23, 2026 @01:38AM (#47485825)
they will do it for unsigned. for signed they will do a bit more to do the same rounding as C promises
Re:The gold standard of optimization: A look under the hood ... by grumbelbart2 on Monday March 23, 2026 @08:55AM (#47488836)
Here is how that looks like:

https://godbolt.org/z/rooee4esd

Re:The gold standard of optimization: A look under the hood ... by account42 on Monday March 23, 2026 @10:25AM (#47490016)
It's unfortunate that C tied overflow behavior to the signedness of integer types.