Commit 3af00d13 authored by Michael Beck's avatar Michael Beck
Browse files

ARCH_ATHLON macro added

[r15807]
parent 520212f7
...@@ -92,6 +92,9 @@ enum cpu_support { ...@@ -92,6 +92,9 @@ enum cpu_support {
/** returns true if it's AMD architecture */ /** returns true if it's AMD architecture */
#define ARCH_AMD(x) _IN_RANGE((x), arch_k6, arch_opteron) #define ARCH_AMD(x) _IN_RANGE((x), arch_k6, arch_opteron)
/** return true if it's a Athlon/Opteron */
#define ARCH_ATHLON(x) _IN_RANGE((x), arch_athlon, arch_opteron)
#define IS_P6_ARCH(x) (_IN_RANGE((x), arch_pentium_pro, arch_core) || \ #define IS_P6_ARCH(x) (_IN_RANGE((x), arch_pentium_pro, arch_core) || \
_IN_RANGE((x), arch_athlon, arch_opteron)) _IN_RANGE((x), arch_athlon, arch_opteron))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment