[PPL-devel] Troubles with rounding
Abramo Bagnara
abramobagnara at tin.it
Fri Nov 3 10:45:26 CET 2006
$ g++ -O2 -frounding-math bug.cc
$ a.out
123456792 123456792
123456792 123456792
123456792 123456792
123456784 123456784
$ g++ -O2 -fno-inline -frounding-math bug.cc
$ a.out
123456784 123456792
123456784 123456792
123456784 123456792
123456784 123456792
Someone knows if this is the expected behaviour?
GCC bugs apart we definitely need a way to avoid this mess, someone
knows a way?
--
Abramo Bagnara mailto:abramobagnara at tin.it
Opera Unica Phone: +39.0546.656023
Via Emilia Interna, 140
48014 Castel Bolognese (RA) - Italy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug.cc
Type: text/x-c++
Size: 1373 bytes
Desc: not available
URL: <http://www.cs.unipr.it/pipermail/ppl-devel/attachments/20061103/8d7c48ef/attachment.bin>
More information about the PPL-devel
mailing list