xref: /OK3568_Linux_fs/kernel/include/uapi/asm-generic/bitsperlong.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2*4882a593Smuzhiyun #ifndef _UAPI__ASM_GENERIC_BITS_PER_LONG
3*4882a593Smuzhiyun #define _UAPI__ASM_GENERIC_BITS_PER_LONG
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun /*
6*4882a593Smuzhiyun  * There seems to be no way of detecting this automatically from user
7*4882a593Smuzhiyun  * space, so 64 bit architectures should override this in their
8*4882a593Smuzhiyun  * bitsperlong.h. In particular, an architecture that supports
9*4882a593Smuzhiyun  * both 32 and 64 bit user space must not rely on CONFIG_64BIT
10*4882a593Smuzhiyun  * to decide it, but rather check a compiler provided macro.
11*4882a593Smuzhiyun  */
12*4882a593Smuzhiyun #ifndef __BITS_PER_LONG
13*4882a593Smuzhiyun #define __BITS_PER_LONG 32
14*4882a593Smuzhiyun #endif
15*4882a593Smuzhiyun 
16*4882a593Smuzhiyun #endif /* _UAPI__ASM_GENERIC_BITS_PER_LONG */
17