bitops_32.h 611 B

123456789101112131415161718192021222324252627282930
  1. #ifndef _I386_BITOPS_H
  2. #define _I386_BITOPS_H
  3. /*
  4. * Copyright 1992, Linus Torvalds.
  5. */
  6. #ifdef __KERNEL__
  7. #include <asm-generic/bitops/sched.h>
  8. #include <asm-generic/bitops/hweight.h>
  9. #endif /* __KERNEL__ */
  10. #include <asm-generic/bitops/fls64.h>
  11. #ifdef __KERNEL__
  12. #include <asm-generic/bitops/ext2-non-atomic.h>
  13. #define ext2_set_bit_atomic(lock, nr, addr) \
  14. test_and_set_bit((nr), (unsigned long *)(addr))
  15. #define ext2_clear_bit_atomic(lock, nr, addr) \
  16. test_and_clear_bit((nr), (unsigned long *)(addr))
  17. #include <asm-generic/bitops/minix.h>
  18. #endif /* __KERNEL__ */
  19. #endif /* _I386_BITOPS_H */