bitops.h (94bd217e2d683719ab21a4ac117d8a1b91cbedc9) bitops.h (febdbfe8a91ce0d11939d4940b592eb0dba8d663)
1#ifndef __ASM_GENERIC_BITOPS_H
2#define __ASM_GENERIC_BITOPS_H
3
4/*
5 * For the benefit of those who are trying to port Linux to another
6 * architecture, here are some C-language equivalents. You should
7 * recode these in the native assembly language, if at all possible.
8 *
9 * C language equivalents written by Theodore Ts'o, 9/26/92
10 */
11
12#include <linux/irqflags.h>
13#include <linux/compiler.h>
1#ifndef __ASM_GENERIC_BITOPS_H
2#define __ASM_GENERIC_BITOPS_H
3
4/*
5 * For the benefit of those who are trying to port Linux to another
6 * architecture, here are some C-language equivalents. You should
7 * recode these in the native assembly language, if at all possible.
8 *
9 * C language equivalents written by Theodore Ts'o, 9/26/92
10 */
11
12#include <linux/irqflags.h>
13#include <linux/compiler.h>
14#include <asm/barrier.h>
14
15
15/*
16 * clear_bit may not imply a memory barrier
17 */
18#ifndef smp_mb__before_clear_bit
19#define smp_mb__before_clear_bit() smp_mb()
20#define smp_mb__after_clear_bit() smp_mb()
21#endif
22
23#include <asm-generic/bitops/__ffs.h>
24#include <asm-generic/bitops/ffz.h>
25#include <asm-generic/bitops/fls.h>
26#include <asm-generic/bitops/__fls.h>
27#include <asm-generic/bitops/fls64.h>
28#include <asm-generic/bitops/find.h>
29
30#ifndef _LINUX_BITOPS_H

--- 14 unchanged lines hidden ---
16#include <asm-generic/bitops/__ffs.h>
17#include <asm-generic/bitops/ffz.h>
18#include <asm-generic/bitops/fls.h>
19#include <asm-generic/bitops/__fls.h>
20#include <asm-generic/bitops/fls64.h>
21#include <asm-generic/bitops/find.h>
22
23#ifndef _LINUX_BITOPS_H

--- 14 unchanged lines hidden ---