2 * const.h: Macros for dealing with constants.
4 * SPDX-License-Identifier: GPL-2.0
10 /* Some constant macros are used in both assembler and
11 * C code. Therefore we cannot annotate them always with
12 * 'UL' and other type specifiers unilaterally. We
13 * use the following macros to deal with this.
15 * Similarly, _AT() will cast an expression with a type in C, but
16 * leave it unchanged in asm.
22 #define _AT(T,X) ((T)(X))
25 #define _BITUL(x) (_AC(1,UL) << (x))
26 #define _BITULL(x) (_AC(1,ULL) << (x))
28 #endif /* !(_LINUX_CONST_H) */