Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762000AbYCCK6d (ORCPT ); Mon, 3 Mar 2008 05:58:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1761676AbYCCK5r (ORCPT ); Mon, 3 Mar 2008 05:57:47 -0500 Received: from mx1.redhat.com ([66.187.233.31]:57715 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761498AbYCCK5p (ORCPT ); Mon, 3 Mar 2008 05:57:45 -0500 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <4a8566f54ff84f498c5c0c0340076c296b1840e6@tazenda.hos.anvin.org> References: <4a8566f54ff84f498c5c0c0340076c296b1840e6@tazenda.hos.anvin.org> To: "H. Peter Anvin" Cc: dhowells@redhat.com, Linus Torvalds , Andrew Morton , Linux Kernel Mailing List , Linux Arch Mailing List , David Brownell Subject: Re: [PATCH 1/2] Add C99-style constructor macros for specific-sized integers X-Mailer: MH-E 8.0.3+cvs; nmh 1.2-20070115cvs; GNU Emacs 23.0.50 Date: Mon, 03 Mar 2008 10:57:32 +0000 Message-ID: <8260.1204541852@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 555 Lines: 19 H. Peter Anvin wrote: > +#define S8_C(x) x > +#define U8_C(x) x ## U > +#define S16_C(x) x > +#define U16_C(x) x ## U > +#define S32_C(x) x > +#define U32_C(x) x ## U > +#define S64_C(x) x ## LL > +#define U64_C(x) x ## ULL And #if defined(__ASSEMBLY__), just splat x through as is. David -- 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/