]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
types: add C99-style constructors to <asm-generic/int-*.h>
authorH. Peter Anvin <hpa@zytor.com>
Thu, 24 Apr 2008 20:37:33 +0000 (13:37 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 2 May 2008 23:18:42 +0000 (16:18 -0700)
commitc25bd29805f4d854c3a0b4176813f3c1bff569d3
tree8712a2748b842176d177dedb2e6594b71fc2ff10
parent4cf63c8ac48c63b4c55669d4648506ed2bb8976f
types: add C99-style constructors to <asm-generic/int-*.h>

Add C99-style constructor macros for fixed types to
<asm-generic/int-*.h>.  Since Linux uses names like "u64" instead of
"uint64_t", the constructor macros are called U64_C() instead of
UINT64_C() and so forth.

These macros allow specific sizes to be specified as
U64_C(0x123456789abcdef), without gcc issuing warnings as it will if
one writes (u64)0x123456789abcdef.

When used from assembly, these macros pass their argument unchanged.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
include/asm-generic/int-l64.h
include/asm-generic/int-ll64.h