Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758585AbYFPWrp (ORCPT ); Mon, 16 Jun 2008 18:47:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756832AbYFPWrh (ORCPT ); Mon, 16 Jun 2008 18:47:37 -0400 Received: from terminus.zytor.com ([198.137.202.10]:41957 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756700AbYFPWrg (ORCPT ); Mon, 16 Jun 2008 18:47:36 -0400 Message-ID: <4856ECC0.3050201@kernel.org> Date: Mon, 16 Jun 2008 15:44:16 -0700 From: "H. Peter Anvin" Organization: Linux Kernel Organization, Inc. User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: Jeremy Fitzhardinge CC: the arch/x86 maintainers , Linux Kernel Mailing List Subject: Re: [PATCH] x86: make asm/asm.h work for asm code. References: <4856E3D3.2010207@goop.org> In-Reply-To: <4856E3D3.2010207@goop.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 568 Lines: 16 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/