diff options
author | aiju <aiju@phicode.de> | 2012-08-24 19:19:42 +0200 |
---|---|---|
committer | aiju <aiju@phicode.de> | 2012-08-24 19:19:42 +0200 |
commit | 46124af6cfa35a58b853bb625f2a57f7d6ea249f (patch) | |
tree | 79ee85a01eb4b98216f035806a1918ecda5c1436 | |
parent | 6edb672951d130524adbe5d7ff19f1f6d610cefc (diff) | |
download | plan9front-46124af6cfa35a58b853bb625f2a57f7d6ea249f.tar.xz |
fix CUT macro in cpuid
-rw-r--r-- | sys/src/cmd/aux/cpuid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/aux/cpuid.c b/sys/src/cmd/aux/cpuid.c index 8312445cf..e0caaeeb0 100644 --- a/sys/src/cmd/aux/cpuid.c +++ b/sys/src/cmd/aux/cpuid.c @@ -2,7 +2,7 @@ #include <libc.h> #include <bio.h> -#define CUT(x, a, b) (((x)&((1<<(b))-1))>>(a)) +#define CUT(x, a, b) (((x)&((1<<((b)+1))-1))>>(a)) typedef struct Res { ulong ax, bx, cx, dx; |