From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Howells Subject: Re: [PATCH 1/2] Add C99-style constructor macros for specific-sized integers Date: Mon, 03 Mar 2008 10:57:32 +0000 Message-ID: <8260.1204541852@redhat.com> References: <4a8566f54ff84f498c5c0c0340076c296b1840e6@tazenda.hos.anvin.org> Return-path: In-Reply-To: <4a8566f54ff84f498c5c0c0340076c296b1840e6-TYXNXmPMDn57u0wkx6qpVYSLwOllVvif@public.gmane.org> Sender: linux-arch-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: To: "H. Peter Anvin" Cc: dhowells-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, Linus Torvalds , Andrew Morton , Linux Kernel Mailing List , Linux Arch Mailing List , David Brownell 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-arch" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 From: David Howells In-Reply-To: <4a8566f54ff84f498c5c0c0340076c296b1840e6@tazenda.hos.anvin.org> References: <4a8566f54ff84f498c5c0c0340076c296b1840e6@tazenda.hos.anvin.org> Subject: Re: [PATCH 1/2] Add C99-style constructor macros for specific-sized integers Date: Mon, 03 Mar 2008 10:57:32 +0000 Message-ID: <8260.1204541852@redhat.com> Sender: linux-arch-owner@vger.kernel.org List-ID: To: "H. Peter Anvin" Cc: dhowells@redhat.com, Linus Torvalds , Andrew Morton , Linux Kernel Mailing List , Linux Arch Mailing List , David Brownell Message-ID: <20080303105732.wEAegrKtKvccRA5e8jJvpJbY6ZtUFpIaEfF8mBzeBlc@z> 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