Blame view
include/asm-generic/bitops.h
1.17 KB
b24413180 License cleanup: ... |
1 |
/* SPDX-License-Identifier: GPL-2.0 */ |
9858c60cc asm-generic: make... |
2 3 |
#ifndef __ASM_GENERIC_BITOPS_H #define __ASM_GENERIC_BITOPS_H |
1da177e4c Linux-2.6.12-rc2 |
4 5 6 |
/* * For the benefit of those who are trying to port Linux to another |
5d0c9b0eb asm-generic/bitop... |
7 8 9 |
* architecture, here are some C-language equivalents. They should * generate reasonable code, so take a look at what your compiler spits * out before rolling your own buggy implementation in assembly language. |
9858c60cc asm-generic: make... |
10 |
* |
1da177e4c Linux-2.6.12-rc2 |
11 12 |
* C language equivalents written by Theodore Ts'o, 9/26/92 */ |
9858c60cc asm-generic: make... |
13 14 |
#include <linux/irqflags.h> #include <linux/compiler.h> |
febdbfe8a arch: Prepare for... |
15 |
#include <asm/barrier.h> |
9858c60cc asm-generic: make... |
16 |
|
f51a05c16 [PATCH] bitops: u... |
17 18 19 |
#include <asm-generic/bitops/__ffs.h> #include <asm-generic/bitops/ffz.h> #include <asm-generic/bitops/fls.h> |
9858c60cc asm-generic: make... |
20 |
#include <asm-generic/bitops/__fls.h> |
f51a05c16 [PATCH] bitops: u... |
21 22 |
#include <asm-generic/bitops/fls64.h> #include <asm-generic/bitops/find.h> |
1da177e4c Linux-2.6.12-rc2 |
23 |
|
0624517d8 forbid asm/bitops... |
24 25 26 |
#ifndef _LINUX_BITOPS_H #error only <linux/bitops.h> can be included directly #endif |
f51a05c16 [PATCH] bitops: u... |
27 28 29 |
#include <asm-generic/bitops/sched.h> #include <asm-generic/bitops/ffs.h> #include <asm-generic/bitops/hweight.h> |
26333576f bitops: introduce... |
30 |
#include <asm-generic/bitops/lock.h> |
1da177e4c Linux-2.6.12-rc2 |
31 |
|
9858c60cc asm-generic: make... |
32 33 |
#include <asm-generic/bitops/atomic.h> #include <asm-generic/bitops/non-atomic.h> |
861b5ae7c bitops: introduce... |
34 |
#include <asm-generic/bitops/le.h> |
f51a05c16 [PATCH] bitops: u... |
35 |
#include <asm-generic/bitops/ext2-atomic.h> |
1da177e4c Linux-2.6.12-rc2 |
36 |
|
9858c60cc asm-generic: make... |
37 |
#endif /* __ASM_GENERIC_BITOPS_H */ |