~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/tools/include/uapi/asm-generic/bitsperlong.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /tools/include/uapi/asm-generic/bitsperlong.h (Architecture mips) and /tools/include/uapi/asm-generic/bitsperlong.h (Architecture sparc)


  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                             5 #ifndef __BITS_PER_LONG
  6 /*                                                  6 /*
  7  * In order to keep safe and avoid regression,      7  * In order to keep safe and avoid regression, only unify uapi
  8  * bitsperlong.h for some archs which are usin      8  * bitsperlong.h for some archs which are using newer toolchains
  9  * that have the definitions of __CHAR_BIT__ a      9  * that have the definitions of __CHAR_BIT__ and __SIZEOF_LONG__.
 10  * See the following link for more info:           10  * See the following link for more info:
 11  * https://lore.kernel.org/linux-arch/b9624545     11  * https://lore.kernel.org/linux-arch/b9624545-2c80-49a1-ac3c-39264a591f7b@app.fastmail.com/
 12  */                                                12  */
 13 #if defined(__CHAR_BIT__) && defined(__SIZEOF_     13 #if defined(__CHAR_BIT__) && defined(__SIZEOF_LONG__)
 14 #define __BITS_PER_LONG (__CHAR_BIT__ * __SIZE     14 #define __BITS_PER_LONG (__CHAR_BIT__ * __SIZEOF_LONG__)
 15 #else                                              15 #else
 16 /*                                                 16 /*
 17  * There seems to be no way of detecting this      17  * There seems to be no way of detecting this automatically from user
 18  * space, so 64 bit architectures should overr     18  * space, so 64 bit architectures should override this in their
 19  * bitsperlong.h. In particular, an architectu     19  * bitsperlong.h. In particular, an architecture that supports
 20  * both 32 and 64 bit user space must not rely     20  * both 32 and 64 bit user space must not rely on CONFIG_64BIT
 21  * to decide it, but rather check a compiler p     21  * to decide it, but rather check a compiler provided macro.
 22  */                                                22  */
 23 #define __BITS_PER_LONG 32                         23 #define __BITS_PER_LONG 32
 24 #endif                                             24 #endif
 25 #endif                                             25 #endif
 26                                                    26 
 27 #ifndef __BITS_PER_LONG_LONG                       27 #ifndef __BITS_PER_LONG_LONG
 28 #define __BITS_PER_LONG_LONG 64                    28 #define __BITS_PER_LONG_LONG 64
 29 #endif                                             29 #endif
 30                                                    30 
 31 #endif /* _UAPI__ASM_GENERIC_BITS_PER_LONG */      31 #endif /* _UAPI__ASM_GENERIC_BITS_PER_LONG */
 32                                                    32 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php