Made the DUMB inline assembly cpuid function specific to GCC/Clang like it should have been in the first place.

CQTexperiment
Chris Moeller 2013-11-10 22:35:54 -08:00
parent 21db2de0cb
commit 8adfb9643d
1 changed files with 3 additions and 1 deletions

View File

@ -792,7 +792,7 @@ static void it_filter_sse(DUMB_CLICK_REMOVER *cr, IT_FILTER_STATE *state, sample
#ifdef _MSC_VER
#include <intrin.h>
#else
#elif defined(__clang__) || defined(__GNUC__)
static inline void
__cpuid(int *data, int selector)
{
@ -803,6 +803,8 @@ __cpuid(int *data, int selector)
"=d" (data[3])
: "a"(selector));
}
#else
#define __cpuid(a,b) memset((a), 0, sizeof(int) * 4)
#endif
static int query_cpu_feature_sse() {