Re: [PATCH 1/2] Add C99-style constructor macros for specific-sized integers

David Howells
2008-03-03T10:58:33Z

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