5#ifndef BITCOIN_COMPAT_CPUID_H
6#define BITCOIN_COMPAT_CPUID_H
8#if defined(__x86_64__) || defined(__amd64__) || defined(__i386__)
14void static inline GetCPUID(uint32_t leaf, uint32_t subleaf, uint32_t &a,
15 uint32_t &b, uint32_t &c, uint32_t &d) {
17 __cpuid_count(leaf, subleaf, a, b, c, d);
20 :
"=a"(a),
"=b"(b),
"=c"(c),
"=d"(d)
21 :
"0"(leaf),
"2"(subleaf));