aboutsummaryrefslogtreecommitdiffstats
path: root/core/mixer/mixer_sse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/mixer/mixer_sse.cpp')
-rw-r--r--core/mixer/mixer_sse.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/mixer/mixer_sse.cpp b/core/mixer/mixer_sse.cpp
index ff722c19..f21ec227 100644
--- a/core/mixer/mixer_sse.cpp
+++ b/core/mixer/mixer_sse.cpp
@@ -15,6 +15,11 @@ struct BSincTag;
struct FastBSincTag;
+/* SSE2 is required for any SSE support. */
+#if defined(__GNUC__) && !defined(__clang__) && !defined(__SSE2__)
+#pragma GCC target("sse2")
+#endif
+
namespace {
constexpr uint FracPhaseBitDiff{MixerFracBits - BSincPhaseBits};