Skip to content
Commit c25bd298 authored by H. Peter Anvin's avatar H. Peter Anvin
Browse files

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: default avatarH. Peter Anvin <hpa@zytor.com>
parent 4cf63c8a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment