Title: [106871] branches/chromium/1025
Revision
106871
Author
[email protected]
Date
2012-02-06 16:30:52 -0800 (Mon, 06 Feb 2012)

Log Message

Merge 106864 - zvmul incorrectly multiplies complex arrays on Windows.
https://bugs.webkit.org/show_bug.cgi?id=77900

[email protected]
Review URL: https://chromiumcodereview.appspot.com/9350003

Modified Paths

Diff

Modified: branches/chromium/1025/LayoutTests/platform/chromium/test_expectations.txt (106870 => 106871)


--- branches/chromium/1025/LayoutTests/platform/chromium/test_expectations.txt	2012-02-07 00:25:16 UTC (rev 106870)
+++ branches/chromium/1025/LayoutTests/platform/chromium/test_expectations.txt	2012-02-07 00:30:52 UTC (rev 106871)
@@ -3798,8 +3798,6 @@
 BUGWK75932 : fast/js/array-defineOwnProperty.html = TEXT
 BUGWK75932 : fast/js/mozilla/strict/15.4.4.6.html = TEXT
 
-BUGWK75933 WIN : webaudio/convolution-mono-mono.html = TEXT
-
 BUGWK76280 : media/W3C/video/networkState/networkState_during_progress.html = PASS TEXT
 BUGV81900 SLOW LINUX DEBUG : inspector/debugger/watch-expressions-panel-switch.html = PASS CRASH
 BUGV81900 SLOW LINUX DEBUG : inspector/debugger/debugger-breakpoints-not-activated-on-reload.html = PASS CRASH

Modified: branches/chromium/1025/Source/WebCore/platform/audio/VectorMath.cpp (106870 => 106871)


--- branches/chromium/1025/Source/WebCore/platform/audio/VectorMath.cpp	2012-02-07 00:25:16 UTC (rev 106870)
+++ branches/chromium/1025/Source/WebCore/platform/audio/VectorMath.cpp	2012-02-07 00:30:52 UTC (rev 106871)
@@ -418,8 +418,13 @@
     }
 #endif
     for (; i < framesToProcess; ++i) {
-        realDestP[i] = real1P[i] * real2P[i] - imag1P[i] * imag2P[i];
-        imagDestP[i] = real1P[i] * imag2P[i] + imag1P[i] * real2P[i];
+        // Read and compute result before storing them, in case the
+        // destination is the same as one of the sources.
+        float realResult = real1P[i] * real2P[i] - imag1P[i] * imag2P[i];
+        float imagResult = real1P[i] * imag2P[i] + imag1P[i] * real2P[i];
+
+        realDestP[i] = realResult;
+        imagDestP[i] = imagResult;
     }
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to