Blame view
include/asm-generic/bitops.h
1.21 KB
9858c60cc asm-generic: make... |
1 2 |
#ifndef __ASM_GENERIC_BITOPS_H #define __ASM_GENERIC_BITOPS_H |
1da177e4c Linux-2.6.12-rc2 |
3 4 5 6 7 |
/* * 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 asm-generic: make... |
8 |
* |
1da177e4c Linux-2.6.12-rc2 |
9 10 |
* C language equivalents written by Theodore Ts'o, 9/26/92 */ |
9858c60cc asm-generic: make... |
11 12 13 14 15 16 17 18 19 20 |
#include <linux/irqflags.h> #include <linux/compiler.h> /* * clear_bit may not imply a memory barrier */ #ifndef smp_mb__before_clear_bit #define smp_mb__before_clear_bit() smp_mb() #define smp_mb__after_clear_bit() smp_mb() #endif |
f51a05c16 [PATCH] bitops: u... |
21 22 23 |
#include <asm-generic/bitops/__ffs.h> #include <asm-generic/bitops/ffz.h> #include <asm-generic/bitops/fls.h> |
9858c60cc asm-generic: make... |
24 |
#include <asm-generic/bitops/__fls.h> |
f51a05c16 [PATCH] bitops: u... |
25 26 |
#include <asm-generic/bitops/fls64.h> #include <asm-generic/bitops/find.h> |
1da177e4c Linux-2.6.12-rc2 |
27 |
|
0624517d8 forbid asm/bitops... |
28 29 30 |
#ifndef _LINUX_BITOPS_H #error only <linux/bitops.h> can be included directly #endif |
f51a05c16 [PATCH] bitops: u... |
31 32 33 |
#include <asm-generic/bitops/sched.h> #include <asm-generic/bitops/ffs.h> #include <asm-generic/bitops/hweight.h> |
26333576f bitops: introduce... |
34 |
#include <asm-generic/bitops/lock.h> |
1da177e4c Linux-2.6.12-rc2 |
35 |
|
9858c60cc asm-generic: make... |
36 37 |
#include <asm-generic/bitops/atomic.h> #include <asm-generic/bitops/non-atomic.h> |
861b5ae7c bitops: introduce... |
38 |
#include <asm-generic/bitops/le.h> |
f51a05c16 [PATCH] bitops: u... |
39 |
#include <asm-generic/bitops/ext2-atomic.h> |
1da177e4c Linux-2.6.12-rc2 |
40 |
|
9858c60cc asm-generic: make... |
41 |
#endif /* __ASM_GENERIC_BITOPS_H */ |