diff options
author | Hoernchen <la@tfc-server.de> | 2015-07-05 17:08:06 +0200 |
---|---|---|
committer | Hoernchen <la@tfc-server.de> | 2015-07-05 17:08:06 +0200 |
commit | e8ad31d70f67d6b935ead1d124220e76499b358a (patch) | |
tree | 58ce9205a320c6f766fd2695cd431978a072d6e6 /sdrbase | |
parent | 4dfb9844318374e0d22e543d3dfe1d67182b0d33 (diff) |
allow building without sse
Diffstat (limited to 'sdrbase')
-rw-r--r-- | sdrbase/gui/glspectrum.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sdrbase/gui/glspectrum.cpp b/sdrbase/gui/glspectrum.cpp index 560f33c..b24f64c 100644 --- a/sdrbase/gui/glspectrum.cpp +++ b/sdrbase/gui/glspectrum.cpp @@ -15,7 +15,9 @@ // along with this program. If not, see <http://www.gnu.org/licenses/>. // /////////////////////////////////////////////////////////////////////////////////// +#ifdef USE_SIMD #include <immintrin.h> +#endif #include <QMouseEvent> #include "gui/glspectrum.h" @@ -315,8 +317,7 @@ void GLSpectrum::updateHistogram(const std::vector<Real>& spectrum) m_histogramHoldoffCount = m_histogramHoldoffBase; } -//#define NO_AVX -#ifdef NO_AVX +#ifndef USE_SIMD for(int i = 0; i < m_fftSize; i++) { int v = (int)((spectrum[i] - m_referenceLevel) * 100.0 / m_powerRange + 100.0); |