diff options
author | Keir Fraser <keir@xen.org> | 2011-06-02 15:01:04 +0100 |
---|---|---|
committer | Keir Fraser <keir@xen.org> | 2011-06-02 15:01:04 +0100 |
commit | 0f0230e4fbebe29b7958bd528f7413883ba943e5 (patch) | |
tree | 5739ffa0d8ed89d4d790e8f2c0afa5d7cca8b5c0 /tools/libxc/xc_cpuid_x86.c | |
parent | 72cc91540e0f2601573222e4398b6197a80ff943 (diff) | |
download | xen-0f0230e4fbebe29b7958bd528f7413883ba943e5.tar.gz xen-0f0230e4fbebe29b7958bd528f7413883ba943e5.tar.bz2 xen-0f0230e4fbebe29b7958bd528f7413883ba943e5.zip |
libxc: Simplify and clean up xc_cpufeature.h
* Remove Linux-private defns with no direct relation to CPUID
* Remove word offsets into Linux-defined cpu_caps array
* Hard tabs -> soft tabs
Signed-off-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'tools/libxc/xc_cpuid_x86.c')
-rw-r--r-- | tools/libxc/xc_cpuid_x86.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/libxc/xc_cpuid_x86.c b/tools/libxc/xc_cpuid_x86.c index c0d446277a..71b598d533 100644 --- a/tools/libxc/xc_cpuid_x86.c +++ b/tools/libxc/xc_cpuid_x86.c @@ -25,9 +25,9 @@ #include "xc_cpufeature.h" #include <xen/hvm/params.h> -#define bitmaskof(idx) (1u << ((idx) & 31)) -#define clear_bit(idx, dst) ((dst) &= ~(1u << ((idx) & 31))) -#define set_bit(idx, dst) ((dst) |= (1u << ((idx) & 31))) +#define bitmaskof(idx) (1u << (idx)) +#define clear_bit(idx, dst) ((dst) &= ~(1u << (idx))) +#define set_bit(idx, dst) ((dst) |= (1u << (idx))) #define DEF_MAX_BASE 0x0000000du #define DEF_MAX_INTELEXT 0x80000008u |