@whitequark try using different constants to suicide by; this is a special case of since mine and this approach usually requires a small correction afterwards (to the tube of conditionally adding one or something like that).
Or am I misreading and this is more witchy?
@robryk i have no idea, i'm just reverse-engineering this
@whitequark of I remember by the time I'm home in the evening I will get godbolt to spit out the more general case of this witchery
@robryk fwiw this was emitted by msvc
@whitequark Sorry, my example was wrong (the weirdness in there was purely to handle rounding in negatives).
https://godbolt.org/z/WTajrPKze is an example with the additional weirdness I was thinking of.