1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 #ifndef _UAPI__ASM_GENERIC_BITS_PER_LONG 2 #ifndef _UAPI__ASM_GENERIC_BITS_PER_LONG 3 #define _UAPI__ASM_GENERIC_BITS_PER_LONG 3 #define _UAPI__ASM_GENERIC_BITS_PER_LONG 4 4 5 #ifndef __BITS_PER_LONG << 6 /* << 7 * In order to keep safe and avoid regression, << 8 * bitsperlong.h for some archs which are usin << 9 * that have the definitions of __CHAR_BIT__ a << 10 * See the following link for more info: << 11 * https://lore.kernel.org/linux-arch/b9624545 << 12 */ << 13 #if defined(__CHAR_BIT__) && defined(__SIZEOF_ << 14 #define __BITS_PER_LONG (__CHAR_BIT__ * __SIZE << 15 #else << 16 /* 5 /* 17 * There seems to be no way of detecting this 6 * There seems to be no way of detecting this automatically from user 18 * space, so 64 bit architectures should overr 7 * space, so 64 bit architectures should override this in their 19 * bitsperlong.h. In particular, an architectu 8 * bitsperlong.h. In particular, an architecture that supports 20 * both 32 and 64 bit user space must not rely 9 * both 32 and 64 bit user space must not rely on CONFIG_64BIT 21 * to decide it, but rather check a compiler p 10 * to decide it, but rather check a compiler provided macro. 22 */ 11 */ >> 12 #ifndef __BITS_PER_LONG 23 #define __BITS_PER_LONG 32 13 #define __BITS_PER_LONG 32 24 #endif << 25 #endif << 26 << 27 #ifndef __BITS_PER_LONG_LONG << 28 #define __BITS_PER_LONG_LONG 64 << 29 #endif 14 #endif 30 15 31 #endif /* _UAPI__ASM_GENERIC_BITS_PER_LONG */ 16 #endif /* _UAPI__ASM_GENERIC_BITS_PER_LONG */ 32 17
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.