From cc5e52b5f4104a47221bb1ac007ea7a0580175f2 Mon Sep 17 00:00:00 2001 From: jules Date: Tue, 18 Mar 2014 11:30:49 +0000 Subject: [PATCH] FloatVectorOperations fixes. --- .../buffers/juce_FloatVectorOperations.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/juce_audio_basics/buffers/juce_FloatVectorOperations.cpp b/modules/juce_audio_basics/buffers/juce_FloatVectorOperations.cpp index 13b0948fed..bc9234d5fe 100644 --- a/modules/juce_audio_basics/buffers/juce_FloatVectorOperations.cpp +++ b/modules/juce_audio_basics/buffers/juce_FloatVectorOperations.cpp @@ -231,12 +231,16 @@ namespace FloatVectorHelpers { const int numLongOps = num / Mode::numParallel; + #if JUCE_USE_SSE_INTRINSICS + if (numLongOps > 1 && isSSE2Available()) + #else if (numLongOps > 1) + #endif { ParallelType val; #if ! JUCE_USE_ARM_NEON - if (FloatVectorHelpers::isAligned (src)) + if (isAligned (src)) { val = Mode::loadA (src); @@ -300,12 +304,16 @@ namespace FloatVectorHelpers { const int numLongOps = num / Mode::numParallel; + #if JUCE_USE_SSE_INTRINSICS + if (numLongOps > 1 && isSSE2Available()) + #else if (numLongOps > 1) + #endif { ParallelType mn, mx; #if ! JUCE_USE_ARM_NEON - if (FloatVectorHelpers::isAligned (src)) + if (isAligned (src)) { mn = Mode::loadA (src); mx = mn;