Made the DUMB inline assembly cpuid function specific to GCC/Clang like it should have been in the first place.
This commit is contained in:
parent
21db2de0cb
commit
8adfb9643d
1 changed files with 3 additions and 1 deletions
|
@ -792,7 +792,7 @@ static void it_filter_sse(DUMB_CLICK_REMOVER *cr, IT_FILTER_STATE *state, sample
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#include <intrin.h>
|
#include <intrin.h>
|
||||||
#else
|
#elif defined(__clang__) || defined(__GNUC__)
|
||||||
static inline void
|
static inline void
|
||||||
__cpuid(int *data, int selector)
|
__cpuid(int *data, int selector)
|
||||||
{
|
{
|
||||||
|
@ -803,6 +803,8 @@ __cpuid(int *data, int selector)
|
||||||
"=d" (data[3])
|
"=d" (data[3])
|
||||||
: "a"(selector));
|
: "a"(selector));
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
#define __cpuid(a,b) memset((a), 0, sizeof(int) * 4)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static int query_cpu_feature_sse() {
|
static int query_cpu_feature_sse() {
|
||||||
|
|
Loading…
Reference in a new issue