[OT] The Usual Arithmetic Confusions
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Mon Jan 31 16:09:33 UTC 2022
On Monday, 31 January 2022 at 11:00:26 UTC, Elronnd wrote:
> Please show me a case where it matters. I already asked for
> this: show me a case where a large-scale c or c++ application
> performs appreciably better because signed overflow is UB. It
> is easy to test this: simply tell gcc or clang -fwrapv and they
> will stop treating overflow as UB.
I've already answered this. You can say this about most
individual optimizations. That does not mean that they don't have
an impact when you didn't get them.
> I will add: does it also not matter when the compiler makes an
> assumption that does not accord with your intent, causing a
> bug? I consider this more important than performance.
What does this mean in this context?
More information about the Digitalmars-d
mailing list