Re: [PATCH] x86: make asm/asm.h work for asm code.

From: H. Peter Anvin
Date: Mon Jun 16 2008 - 18:47:46 EST


Jeremy Fitzhardinge wrote:

+# define __ASM_INC incl
+# define __ASM_INC incq
+#define _ASM_INC __ASM_INC
+#define _ASM_INC " " __stringify(__ASM_INC) " "

You have *exactly* as many #defines as if one would simply do four cases (32 C, 64 C, 32 asm, 64 asm), and that would be easier to read...

-hpa
--
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/