1c31ae4bbSArnd Bergmann #ifndef __ASM_GENERIC_BITS_PER_LONG
2c31ae4bbSArnd Bergmann #define __ASM_GENERIC_BITS_PER_LONG
3c31ae4bbSArnd Bergmann 
4*8a1ab315SDavid Howells #include <uapi/asm-generic/bitsperlong.h>
5c31ae4bbSArnd Bergmann 
6c31ae4bbSArnd Bergmann 
7c31ae4bbSArnd Bergmann #ifdef CONFIG_64BIT
8c31ae4bbSArnd Bergmann #define BITS_PER_LONG 64
9c31ae4bbSArnd Bergmann #else
10c31ae4bbSArnd Bergmann #define BITS_PER_LONG 32
11c31ae4bbSArnd Bergmann #endif /* CONFIG_64BIT */
12c31ae4bbSArnd Bergmann 
13c31ae4bbSArnd Bergmann /*
14c31ae4bbSArnd Bergmann  * FIXME: The check currently breaks x86-64 build, so it's
15c31ae4bbSArnd Bergmann  * temporarily disabled. Please fix x86-64 and reenable
16c31ae4bbSArnd Bergmann  */
17c31ae4bbSArnd Bergmann #if 0 && BITS_PER_LONG != __BITS_PER_LONG
18c31ae4bbSArnd Bergmann #error Inconsistent word size. Check asm/bitsperlong.h
19c31ae4bbSArnd Bergmann #endif
20c31ae4bbSArnd Bergmann 
21133fd9f5SDenys Vlasenko #ifndef BITS_PER_LONG_LONG
22133fd9f5SDenys Vlasenko #define BITS_PER_LONG_LONG 64
23133fd9f5SDenys Vlasenko #endif
24133fd9f5SDenys Vlasenko 
25c31ae4bbSArnd Bergmann #endif /* __ASM_GENERIC_BITS_PER_LONG */
26