bitops.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef __ASM_GENERIC_BITOPS_H
  2. #define __ASM_GENERIC_BITOPS_H
  3. /*
  4. * For the benefit of those who are trying to port Linux to another
  5. * architecture, here are some C-language equivalents. You should
  6. * recode these in the native assembly language, if at all possible.
  7. *
  8. * C language equivalents written by Theodore Ts'o, 9/26/92
  9. */
  10. #include <linux/irqflags.h>
  11. #include <linux/compiler.h>
  12. #include <asm/barrier.h>
  13. #include <asm-generic/bitops/__ffs.h>
  14. #include <asm-generic/bitops/ffz.h>
  15. #include <asm-generic/bitops/fls.h>
  16. #include <asm-generic/bitops/__fls.h>
  17. #include <asm-generic/bitops/fls64.h>
  18. #include <asm-generic/bitops/find.h>
  19. #ifndef _LINUX_BITOPS_H
  20. #error only <linux/bitops.h> can be included directly
  21. #endif
  22. #include <asm-generic/bitops/sched.h>
  23. #include <asm-generic/bitops/ffs.h>
  24. #include <asm-generic/bitops/hweight.h>
  25. #include <asm-generic/bitops/lock.h>
  26. #include <asm-generic/bitops/atomic.h>
  27. #include <asm-generic/bitops/non-atomic.h>
  28. #include <asm-generic/bitops/le.h>
  29. #include <asm-generic/bitops/ext2-atomic.h>
  30. #endif /* __ASM_GENERIC_BITOPS_H */