Path: blob/master/include/asm-generic/bitsperlong.h
10814 views
#ifndef __ASM_GENERIC_BITS_PER_LONG1#define __ASM_GENERIC_BITS_PER_LONG23/*4* There seems to be no way of detecting this automatically from user5* space, so 64 bit architectures should override this in their6* bitsperlong.h. In particular, an architecture that supports7* both 32 and 64 bit user space must not rely on CONFIG_64BIT8* to decide it, but rather check a compiler provided macro.9*/10#ifndef __BITS_PER_LONG11#define __BITS_PER_LONG 3212#endif1314#ifdef __KERNEL__1516#ifdef CONFIG_64BIT17#define BITS_PER_LONG 6418#else19#define BITS_PER_LONG 3220#endif /* CONFIG_64BIT */2122/*23* FIXME: The check currently breaks x86-64 build, so it's24* temporarily disabled. Please fix x86-64 and reenable25*/26#if 0 && BITS_PER_LONG != __BITS_PER_LONG27#error Inconsistent word size. Check asm/bitsperlong.h28#endif2930#endif /* __KERNEL__ */31#endif /* __ASM_GENERIC_BITS_PER_LONG */323334