This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]