PageRenderTime 39ms CodeModel.GetById 34ms RepoModel.GetById 2ms app.codeStats 0ms

/arch/parisc/include/asm/bitsperlong.h

https://bitbucket.org/cresqo/cm7-p500-kernel
C Header | 20 lines | 11 code | 3 blank | 6 comment | 2 complexity | 9d995ca230f4a45d27308400d29afbfb MD5 | raw file
Possible License(s): LGPL-2.0, AGPL-1.0, GPL-2.0
  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 */