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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user