OSDN Git Service

original
[gb-231r1-is01/Gingerbread_2.3.3_r1_IS01.git] / prebuilt / ndk / android-ndk-r4 / platforms / android-3 / arch-arm / usr / include / asm-generic / bitops / non-atomic.h
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ****************************************************************************
11  ****************************************************************************/
12 #ifndef _ASM_GENERIC_BITOPS_NON_ATOMIC_H_
13 #define _ASM_GENERIC_BITOPS_NON_ATOMIC_H_
14
15 #include <asm/types.h>
16
17 #define BITOP_MASK(nr) (1UL << ((nr) % BITS_PER_LONG))
18 #define BITOP_WORD(nr) ((nr) / BITS_PER_LONG)
19
20 #endif