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
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top