aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-08-11 14:45:28 -0700
committerChris Robinson <[email protected]>2014-08-11 14:45:28 -0700
commitba3f1e746807a0ef234969400339b9a3018e54e6 (patch)
treeb00cce06c9e78d529c117910d08f9d1254ff95ba /Alc
parent74c8de6372bc84916551a6685f337e69017eb239 (diff)
Assume SSE is available if building with support and no run-time checking
Diffstat (limited to 'Alc')
-rw-r--r--Alc/helpers.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/Alc/helpers.c b/Alc/helpers.c
index 90419c17..fc879d95 100644
--- a/Alc/helpers.c
+++ b/Alc/helpers.c
@@ -194,6 +194,18 @@ void FillCPUCaps(ALuint capfilter)
}
}
}
+#else
+ /* Assume support for whatever's supported if we can't check for it */
+#if defined(HAVE_SSE4_1)
+#warning "Assuming SSE 4.1 run-time support!"
+ capfilter |= CPU_CAP_SSE | CPU_CAP_SSE2 | CPU_CAP_SSE4_1;
+#elif defined(HAVE_SSE2)
+#warning "Assuming SSE 2 run-time support!"
+ capfilter |= CPU_CAP_SSE | CPU_CAP_SSE2;
+#elif defined(HAVE_SSE)
+#warning "Assuming SSE run-time support!"
+ capfilter |= CPU_CAP_SSE;
+#endif
#endif
#ifdef HAVE_NEON
/* Assume Neon support if compiled with it */