diff options
| author | 2006-03-26 01:39:07 -0800 | |
|---|---|---|
| committer | 2006-03-26 08:57:10 -0800 | |
| commit | 4117b02132d1cf96a3e1c57148e302c4801c974d (patch) | |
| tree | bbab0444010b7e549ecb3bec2ac28624bd9b0393 /tools/lib/python/kdoc/python_version.py | |
| parent | [PATCH] bitops: generic {,test_and_}{set,clear,change}_bit() (diff) | |
[PATCH] bitops: generic __{,test_and_}{set,clear,change}_bit() and test_bit()
This patch introduces the C-language equivalents of the functions below:
void __set_bit(int nr, volatile unsigned long *addr);
void __clear_bit(int nr, volatile unsigned long *addr);
void __change_bit(int nr, volatile unsigned long *addr);
int __test_and_set_bit(int nr, volatile unsigned long *addr);
int __test_and_clear_bit(int nr, volatile unsigned long *addr);
int __test_and_change_bit(int nr, volatile unsigned long *addr);
int test_bit(int nr, const volatile unsigned long *addr);
In include/asm-generic/bitops/non-atomic.h
This code largely copied from: asm-powerpc/bitops.h
Signed-off-by: Akinobu Mita <mita@miraclelinux.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
