blob: e022a0f59e6bb8707268466922adcb849e9e284e [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#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.
Linus Torvalds1da177e2005-04-16 15:20:36 -07008 *
9 * C language equivalents written by Theodore Ts'o, 9/26/92
10 */
11
Akinobu Mitaf51a05c2006-03-26 01:39:50 -080012#include <asm-generic/bitops/atomic.h>
13#include <asm-generic/bitops/non-atomic.h>
14#include <asm-generic/bitops/__ffs.h>
15#include <asm-generic/bitops/ffz.h>
16#include <asm-generic/bitops/fls.h>
17#include <asm-generic/bitops/fls64.h>
18#include <asm-generic/bitops/find.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070019
20#ifdef __KERNEL__
21
Akinobu Mitaf51a05c2006-03-26 01:39:50 -080022#include <asm-generic/bitops/sched.h>
23#include <asm-generic/bitops/ffs.h>
24#include <asm-generic/bitops/hweight.h>
Nick Piggin26333572007-10-18 03:06:39 -070025#include <asm-generic/bitops/lock.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070026
Akinobu Mitaf51a05c2006-03-26 01:39:50 -080027#include <asm-generic/bitops/ext2-non-atomic.h>
28#include <asm-generic/bitops/ext2-atomic.h>
29#include <asm-generic/bitops/minix.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070030
31#endif /* __KERNEL__ */
32
33#endif /* _ASM_GENERIC_BITOPS_H */