Chromium Code Reviews| Index: Source/core/platform/audio/DirectConvolver.cpp |
| diff --git a/Source/core/platform/audio/DirectConvolver.cpp b/Source/core/platform/audio/DirectConvolver.cpp |
| index 030719f53c3c26dee63c506c6c914cc964a7be53..5b8e3a58a25c866614495a1ed35cf6a7863bdb23 100644 |
| --- a/Source/core/platform/audio/DirectConvolver.cpp |
| +++ b/Source/core/platform/audio/DirectConvolver.cpp |
| @@ -37,6 +37,7 @@ |
| #endif |
| #include "core/platform/audio/VectorMath.h" |
| +#include "wtf/CPU.h" |
| namespace WebCore { |
| @@ -90,11 +91,11 @@ void DirectConvolver::process(AudioFloatArray* convolutionKernel, const float* s |
| memcpy(inputP, sourceP, sizeof(float) * framesToProcess); |
| #if OS(MACOSX) |
| -#if defined(__ppc__) || defined(__i386__) |
| +#if defined(__ppc__) || CPU(X86) |
|
Raymond Toy (Google)
2013/09/09 16:54:19
Might as well remove the __ppc__ here and below?
|
| conv(inputP - kernelSize + 1, 1, kernelP + kernelSize - 1, -1, destP, 1, framesToProcess, kernelSize); |
| #else |
| vDSP_conv(inputP - kernelSize + 1, 1, kernelP + kernelSize - 1, -1, destP, 1, framesToProcess, kernelSize); |
| -#endif // defined(__ppc__) || defined(__i386__) |
| +#endif // defined(__ppc__) || CPU(X86) |
| #else |
| // FIXME: The macro can be further optimized to avoid pipeline stalls. One possibility is to maintain 4 separate sums and change the macro to CONVOLVE_FOUR_SAMPLES. |
| #define CONVOLVE_ONE_SAMPLE \ |