Re: [PATCH 07/15] x86: add xadd helper macro

From: Jeremy Fitzhardinge
Date: Tue Aug 23 2011 - 12:34:37 EST


On 08/23/2011 03:59 AM, Peter Zijlstra wrote:
>
> What you could do is something like:
>
> #define CASE_B case 1
> #define CASE_W case 2
> #define CASE_L case 4
> #ifdef CONFIG_64BIT
> # define CASE_Q case 8
> #else
> # define CASE_Q case -1 /* sizeof() won't ever return this */
> #endif

Yeah, that's OK, though I'll just make it the constants so there's still
a case keyword in the switch.

J

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/