[Bug target/57669] Incorrect floating point values with 32-bit compile

oliverst at online dot de gcc-bugzilla@gcc.gnu.org
Fri Jun 21 16:38:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57669

--- Comment #3 from Oliver Stoeneberg <oliverst at online dot de> ---
It's unoptimized code and using -msse -mfpmath=sse fixes it.

But there is another fix:
http://msdn.microsoft.com/en-us/library/vstudio/7t5yh4fd(v=vs.110).aspx

Changing

autoc[coeff] += d * data[sample+coeff];

to

FLAC__real tmp = d * data[sample+coeff];
autoc[coeff] += tmp;

also provides the same results with 32-bit as 64-bit does.



More information about the Gcc-bugs mailing list