[Webkit-unassigned] [Bug 70140] Flush denormals to zero on Windows.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 14 14:14:42 PDT 2011


--- Comment #3 from Raymond Toy <rtoy at chromium.org>  2011-10-14 14:14:42 PST ---
This patch fixes an issue with denormal floats on Windows.  The issue can be seen at http://chromium.googlecode.com/svn/trunk/samples/audio/dj.html.  Drag the leftRhythmEffect slider to the right and then all the way to the left.  You will hear (and see) artifacts.  These are caused by denormal numbers which are very slow to process.

This doesn't happen on Linux or Mac because denormals are flushed to zero by the SSE hardware.  On windows, SSE is not used, and the x87 has no HW support for flushing denormals to zero.

Also, we converted the local variable, gain, from a double to a float to better match the float values of the inputs and outputs so unnecessary conversions are not needed.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list