lkml.org 
[lkml]   [2008]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
FromDavid Howells <>
SubjectRe: [PATCH 1/2] Add C99-style constructor macros for specific-sized integers
DateMon, 03 Mar 2008 10:57:32 +0000
H. Peter Anvin <hpa@zytor.com> 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


\
 
 \ /
  Last update: 2008-03-03 12:01    [from the cache]
©2003-2010