Portably replacing -0.0 with 0.0

T

Thomas Jahns

Assuming that the others are correct that the original code can't be optimized
to a no-op, then it might be a bug in the optimizer not special-casing 0.0 in:

please read my follow-up: -fp-model precise fixes it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,076
Messages
2,570,565
Members
47,200
Latest member
Vanessa98N

Latest Threads

Top