From ba3f1e746807a0ef234969400339b9a3018e54e6 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 11 Aug 2014 14:45:28 -0700 Subject: Assume SSE is available if building with support and no run-time checking --- Alc/helpers.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Alc') 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 */ -- cgit v1.2.3