blob: dcdcacf2fd2b8da3831eff135b4719aeeaad16d6 [file] [log] [blame]
Arnd Bergmann9858c602009-05-13 22:56:32 +00001#ifndef __ASM_GENERIC_BITOPS_H
2#define __ASM_GENERIC_BITOPS_H
Linus Torvalds1da177e2005-04-16 15:20:36 -07003
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.
Arnd Bergmann9858c602009-05-13 22:56:32 +00008 *
Linus Torvalds1da177e2005-04-16 15:20:36 -07009 * C language equivalents written by Theodore Ts'o, 9/26/92
10 */
11
Arnd Bergmann9858c602009-05-13 22:56:32 +000012#include <linux/irqflags.h>
13#include <linux/compiler.h>
Peter Zijlstrafebdbfe2014-02-06 18:16:07 +010014#include <asm/barrier.h>
Arnd Bergmann9858c602009-05-13 22:56:32 +000015
Akinobu Mitaf51a05c2006-03-26 01:39:50 -080016#include <asm-generic/bitops/__ffs.h>
17#include <asm-generic/bitops/ffz.h>
18#include <asm-generic/bitops/fls.h>
Arnd Bergmann9858c602009-05-13 22:56:32 +000019#include <asm-generic/bitops/__fls.h>
Akinobu Mitaf51a05c2006-03-26 01:39:50 -080020#include <asm-generic/bitops/fls64.h>
21#include <asm-generic/bitops/find.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070022
Jiri Slaby06245172007-10-18 23:40:26 -070023#ifndef _LINUX_BITOPS_H
24#error only <linux/bitops.h> can be included directly
25#endif
26
Akinobu Mitaf51a05c2006-03-26 01:39:50 -080027#include <asm-generic/bitops/sched.h>
28#include <asm-generic/bitops/ffs.h>
29#include <asm-generic/bitops/hweight.h>
Nick Piggin26333572007-10-18 03:06:39 -070030#include <asm-generic/bitops/lock.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070031
Arnd Bergmann9858c602009-05-13 22:56:32 +000032#include <asm-generic/bitops/atomic.h>
33#include <asm-generic/bitops/non-atomic.h>
Akinobu Mita861b5ae2011-03-23 16:42:02 -070034#include <asm-generic/bitops/le.h>
Akinobu Mitaf51a05c2006-03-26 01:39:50 -080035#include <asm-generic/bitops/ext2-atomic.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070036
Arnd Bergmann9858c602009-05-13 22:56:32 +000037#endif /* __ASM_GENERIC_BITOPS_H */