bitsperlong.h 447 B

1234567891011121314151617181920
  1. #ifndef __ASM_GENERIC_BITS_PER_LONG
  2. #define __ASM_GENERIC_BITS_PER_LONG
  3. #include <uapi/asm-generic/bitsperlong.h>
  4. #ifdef __SIZEOF_LONG__
  5. #define BITS_PER_LONG (__CHAR_BIT__ * __SIZEOF_LONG__)
  6. #else
  7. #define BITS_PER_LONG __WORDSIZE
  8. #endif
  9. #if BITS_PER_LONG != __BITS_PER_LONG
  10. #error Inconsistent word size. Check asm/bitsperlong.h
  11. #endif
  12. #ifndef BITS_PER_LONG_LONG
  13. #define BITS_PER_LONG_LONG 64
  14. #endif
  15. #endif /* __ASM_GENERIC_BITS_PER_LONG */