3 ms·
they will do it for unsigned. for signed they will do a bit more to do the same rounding as C promises
by dmitrygr 7mo ago
they will do it for unsigned. for signed they will do a bit more to do the same rounding as C promises
- grumbelbart2 7mo agoHere is how that looks like: https://godbolt.org/z/rooee4esd https://godbolt.org/z/rooee4esd
- account42 7mo agoIt's unfortunate that C tied overflow behavior to the signedness of integer types.