Blame view

include/asm-generic/bitops.h 1.09 KB
b24413180   Greg Kroah-Hartman   License cleanup: ...
1
  /* SPDX-License-Identifier: GPL-2.0 */
9858c60cc   Arnd Bergmann   asm-generic: make...
2
3
  #ifndef __ASM_GENERIC_BITOPS_H
  #define __ASM_GENERIC_BITOPS_H
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
4
5
6
7
8
  
  /*
   * For the benefit of those who are trying to port Linux to another
   * architecture, here are some C-language equivalents.  You should
   * recode these in the native assembly language, if at all possible.
9858c60cc   Arnd Bergmann   asm-generic: make...
9
   *
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
10
11
   * C language equivalents written by Theodore Ts'o, 9/26/92
   */
9858c60cc   Arnd Bergmann   asm-generic: make...
12
13
  #include <linux/irqflags.h>
  #include <linux/compiler.h>
febdbfe8a   Peter Zijlstra   arch: Prepare for...
14
  #include <asm/barrier.h>
9858c60cc   Arnd Bergmann   asm-generic: make...
15

f51a05c16   Akinobu Mita   [PATCH] bitops: u...
16
17
18
  #include <asm-generic/bitops/__ffs.h>
  #include <asm-generic/bitops/ffz.h>
  #include <asm-generic/bitops/fls.h>
9858c60cc   Arnd Bergmann   asm-generic: make...
19
  #include <asm-generic/bitops/__fls.h>
f51a05c16   Akinobu Mita   [PATCH] bitops: u...
20
21
  #include <asm-generic/bitops/fls64.h>
  #include <asm-generic/bitops/find.h>
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
22

0624517d8   Jiri Slaby   forbid asm/bitops...
23
24
25
  #ifndef _LINUX_BITOPS_H
  #error only <linux/bitops.h> can be included directly
  #endif
f51a05c16   Akinobu Mita   [PATCH] bitops: u...
26
27
28
  #include <asm-generic/bitops/sched.h>
  #include <asm-generic/bitops/ffs.h>
  #include <asm-generic/bitops/hweight.h>
26333576f   Nick Piggin   bitops: introduce...
29
  #include <asm-generic/bitops/lock.h>
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
30

9858c60cc   Arnd Bergmann   asm-generic: make...
31
32
  #include <asm-generic/bitops/atomic.h>
  #include <asm-generic/bitops/non-atomic.h>
861b5ae7c   Akinobu Mita   bitops: introduce...
33
  #include <asm-generic/bitops/le.h>
f51a05c16   Akinobu Mita   [PATCH] bitops: u...
34
  #include <asm-generic/bitops/ext2-atomic.h>
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
35

9858c60cc   Arnd Bergmann   asm-generic: make...
36
  #endif /* __ASM_GENERIC_BITOPS_H */