GNU Radio 3.7.2 C++ API
gcc_x86_cpuid.h File Reference

Go to the source code of this file.

Macros

#define bit_SSE3   (1 << 0)
 
#define bit_PCLMUL   (1 << 1)
 
#define bit_SSSE3   (1 << 9)
 
#define bit_FMA   (1 << 12)
 
#define bit_CMPXCHG16B   (1 << 13)
 
#define bit_SSE4_1   (1 << 19)
 
#define bit_SSE4_2   (1 << 20)
 
#define bit_MOVBE   (1 << 22)
 
#define bit_POPCNT   (1 << 23)
 
#define bit_AES   (1 << 25)
 
#define bit_XSAVE   (1 << 26)
 
#define bit_OSXSAVE   (1 << 27)
 
#define bit_AVX   (1 << 28)
 
#define bit_F16C   (1 << 29)
 
#define bit_RDRND   (1 << 30)
 
#define bit_CMPXCHG8B   (1 << 8)
 
#define bit_CMOV   (1 << 15)
 
#define bit_MMX   (1 << 23)
 
#define bit_FXSAVE   (1 << 24)
 
#define bit_SSE   (1 << 25)
 
#define bit_SSE2   (1 << 26)
 
#define bit_LAHF_LM   (1 << 0)
 
#define bit_ABM   (1 << 5)
 
#define bit_SSE4a   (1 << 6)
 
#define bit_XOP   (1 << 11)
 
#define bit_LWP   (1 << 15)
 
#define bit_FMA4   (1 << 16)
 
#define bit_TBM   (1 << 21)
 
#define bit_MMXEXT   (1 << 22)
 
#define bit_LM   (1 << 29)
 
#define bit_3DNOWP   (1 << 30)
 
#define bit_3DNOW   (1 << 31)
 
#define bit_FSGSBASE   (1 << 0)
 
#define bit_BMI   (1 << 3)
 
#define __cpuid(level, a, b, c, d)
 
#define __cpuid_count(level, count, a, b, c, d)
 

Functions

static __inline unsigned int __get_cpuid_max (unsigned int __ext, unsigned int *__sig)
 
static __inline int __get_cpuid (unsigned int __level, unsigned int *__eax, unsigned int *__ebx, unsigned int *__ecx, unsigned int *__edx)
 

Macro Definition Documentation

#define __cpuid (   level,
  a,
  b,
  c,
 
)
Value:
__asm__ ("cpuid\n\t" \
: "=a" (a), "=b" (b), "=c" (c), "=d" (d) \
: "0" (level))

Referenced by __get_cpuid(), and __get_cpuid_max().

#define __cpuid_count (   level,
  count,
  a,
  b,
  c,
 
)
Value:
__asm__ ("cpuid\n\t" \
: "=a" (a), "=b" (b), "=c" (c), "=d" (d) \
: "0" (level), "2" (count))
#define bit_3DNOW   (1 << 31)
#define bit_3DNOWP   (1 << 30)
#define bit_ABM   (1 << 5)
#define bit_AES   (1 << 25)
#define bit_AVX   (1 << 28)
#define bit_BMI   (1 << 3)
#define bit_CMOV   (1 << 15)
#define bit_CMPXCHG16B   (1 << 13)
#define bit_CMPXCHG8B   (1 << 8)
#define bit_F16C   (1 << 29)
#define bit_FMA   (1 << 12)
#define bit_FMA4   (1 << 16)
#define bit_FSGSBASE   (1 << 0)
#define bit_FXSAVE   (1 << 24)
#define bit_LAHF_LM   (1 << 0)
#define bit_LM   (1 << 29)
#define bit_LWP   (1 << 15)
#define bit_MMX   (1 << 23)
#define bit_MMXEXT   (1 << 22)
#define bit_MOVBE   (1 << 22)
#define bit_OSXSAVE   (1 << 27)
#define bit_PCLMUL   (1 << 1)
#define bit_POPCNT   (1 << 23)
#define bit_RDRND   (1 << 30)
#define bit_SSE   (1 << 25)
#define bit_SSE2   (1 << 26)
#define bit_SSE3   (1 << 0)
#define bit_SSE4_1   (1 << 19)
#define bit_SSE4_2   (1 << 20)
#define bit_SSE4a   (1 << 6)
#define bit_SSSE3   (1 << 9)
#define bit_TBM   (1 << 21)
#define bit_XOP   (1 << 11)
#define bit_XSAVE   (1 << 26)

Function Documentation

static __inline int __get_cpuid ( unsigned int  __level,
unsigned int *  __eax,
unsigned int *  __ebx,
unsigned int *  __ecx,
unsigned int *  __edx 
)
static

References __cpuid, and __get_cpuid_max().

static __inline unsigned int __get_cpuid_max ( unsigned int  __ext,
unsigned int *  __sig 
)
static

References __cpuid.

Referenced by __get_cpuid().