From 46124af6cfa35a58b853bb625f2a57f7d6ea249f Mon Sep 17 00:00:00 2001 From: aiju Date: Fri, 24 Aug 2012 19:19:42 +0200 Subject: fix CUT macro in cpuid --- sys/src/cmd/aux/cpuid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/src') 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 #include -#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; -- cgit v1.2.3