Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 436548
Collapse All | Expand All

(-)a/src/cpusupport.h (-2 / +17 lines)
Lines 32-38 Link Here
32
# if !defined(__SSE__) || defined(_M_X64) || defined(__amd64__)
32
# if !defined(__SSE__) || defined(_M_X64) || defined(__amd64__)
33
#  define query_cpu_support() 0
33
#  define query_cpu_support() 0
34
#else
34
#else
35
# include <intrin.h>
35
36
#if defined WIN32 || defined _WIN32
37
#include <intrin.h>
36
static inline int query_cpu_support(void)
38
static inline int query_cpu_support(void)
37
{
39
{
38
   int buffer[4];
40
   int buffer[4];
Lines 43-47 static inline int query_cpu_support(void) Link Here
43
#  endif
45
#  endif
44
       ;
46
       ;
45
}
47
}
48
#else
49
#include <cpuid.h>
50
static inline int query_cpu_support(void)
51
{
52
   unsigned int eax, ebx, ecx, edx=0;
53
   __get_cpuid(1, &eax, &ebx, &ecx, &edx);
54
   return ((edx & 1<<25) == 0) /*SSE*/
55
#ifdef __SSE2__
56
        + ((edx & 1<<26) == 0) /*SSE2*/
57
#endif
58
       ;
59
}
60
#endif
61
46
# endif
62
# endif
47
#endif
63
#endif
48
- 

Return to bug 436548