Lines Matching full:cpuid
15 * Implementation taken from folly/CpuId.h
16 * https://github.com/facebook/folly/blob/master/folly/CpuId.h
54 /* The following block like the normal cpuid branch below, but gcc in ZSTD_cpuid()
61 "cpuid\n\t" in ZSTD_cpuid()
70 "cpuid\n\t" in ZSTD_cpuid()
78 "cpuid\n\t" in ZSTD_cpuid()
87 __asm__("cpuid" : "=a"(n) : "a"(0) : "ebx", "ecx", "edx"); in ZSTD_cpuid()
90 __asm__("cpuid" : "=a"(f1a), "=c"(f1c), "=d"(f1d) : "a"(1) : "ebx"); in ZSTD_cpuid()
94 __asm__("cpuid" in ZSTD_cpuid()
101 ZSTD_cpuid_t cpuid; in ZSTD_cpuid() local
102 cpuid.f1c = f1c; in ZSTD_cpuid()
103 cpuid.f1d = f1d; in ZSTD_cpuid()
104 cpuid.f7b = f7b; in ZSTD_cpuid()
105 cpuid.f7c = f7c; in ZSTD_cpuid()
106 return cpuid; in ZSTD_cpuid()
111 MEM_STATIC int ZSTD_cpuid_##name(ZSTD_cpuid_t const cpuid) { \
112 return ((cpuid.r) & (1U << bit)) != 0; \
115 /* cpuid(1): Processor Info and Feature Bits. */
179 /* cpuid(7): Extended Features. */