bitsperlong.h 553 B

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