AudioStream: Fix building without SSE on Linux

This commit is contained in:
Connor McLaughlin 2022-12-20 21:25:15 +10:00
parent d65cbe42ae
commit 4eb6b90825
1 changed files with 4 additions and 3 deletions

View File

@ -7,6 +7,7 @@
#include "common/assert.h"
#include "common/log.h"
#include "common/make_array.h"
#include "common/platform.h"
#include "common/timer.h"
#include <algorithm>
#include <cmath>
@ -22,7 +23,7 @@
#include <arm64_neon.h>
#elif defined(__aarch64__)
#include <arm_neon.h>
#elif defined(_M_IX86) || defined(_M_AMD64)
#elif defined(CPU_X86) || defined(CPU_X64)
#include <emmintrin.h>
#endif
@ -364,7 +365,7 @@ void AudioStream::EndWrite(u32 num_frames)
static constexpr float S16_TO_FLOAT = 1.0f / 32767.0f;
static constexpr float FLOAT_TO_S16 = 32767.0f;
#if defined(_M_ARM64) || defined(__aarch64__)
#if defined(CPU_AARCH64)
static void S16ChunkToFloat(const s32* src, float* dst)
{
@ -417,7 +418,7 @@ static void FloatChunkToS16(s32* dst, const float* src, uint size)
}
}
#elif defined(_M_IX86) || defined(_M_AMD64)
#elif defined(CPU_X86) || defined(CPU_X64)
static void S16ChunkToFloat(const s32* src, float* dst)
{