Commit | Line | Data |
---|---|---|
bb970707 ACM |
1 | #ifndef __ASM_GENERIC_BITS_PER_LONG |
2 | #define __ASM_GENERIC_BITS_PER_LONG | |
3 | ||
4 | #include <uapi/asm-generic/bitsperlong.h> | |
5 | ||
2a00f026 | 6 | #ifdef __SIZEOF_LONG__ |
e81fcd43 | 7 | #define BITS_PER_LONG (__CHAR_BIT__ * __SIZEOF_LONG__) |
2a00f026 | 8 | #else |
e81fcd43 | 9 | #define BITS_PER_LONG __WORDSIZE |
2a00f026 | 10 | #endif |
bb970707 | 11 | |
2a00f026 | 12 | #if BITS_PER_LONG != __BITS_PER_LONG |
bb970707 ACM |
13 | #error Inconsistent word size. Check asm/bitsperlong.h |
14 | #endif | |
15 | ||
16 | #ifndef BITS_PER_LONG_LONG | |
17 | #define BITS_PER_LONG_LONG 64 | |
18 | #endif | |
19 | ||
20 | #endif /* __ASM_GENERIC_BITS_PER_LONG */ |