bitsperlong.h 493 B

123456789101112131415161718192021
  1. #ifndef __ASM_PARISC_BITSPERLONG_H
  2. #define __ASM_PARISC_BITSPERLONG_H
  3. /*
  4. * using CONFIG_* outside of __KERNEL__ is wrong,
  5. * __LP64__ was also removed from headers, so what
  6. * is the right approach on parisc?
  7. * -arnd
  8. */
  9. #if (defined(__KERNEL__) && defined(CONFIG_64BIT)) || defined (__LP64__)
  10. #define __BITS_PER_LONG 64
  11. #define SHIFT_PER_LONG 6
  12. #else
  13. #define __BITS_PER_LONG 32
  14. #define SHIFT_PER_LONG 5
  15. #endif
  16. #include <asm-generic/bitsperlong.h>
  17. #endif /* __ASM_PARISC_BITSPERLONG_H */