1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-08 00:44:48 -04:00

Allow building without SSE.

This commit is contained in:
Hoernchen
2015-07-05 17:08:06 +02:00
committed by John Greb
parent 2b0396809e
commit 4968bf1ccd
3 changed files with 21 additions and 11 deletions
+3 -2
View File
@@ -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"
@@ -313,8 +315,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);