![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 */ 0002 #ifndef _TOOLS_LINUX_ASM_GENERIC_BITOPS_ATOMIC_H_ 0003 #define _TOOLS_LINUX_ASM_GENERIC_BITOPS_ATOMIC_H_ 0004 0005 #include <asm/types.h> 0006 #include <asm/bitsperlong.h> 0007 0008 static inline void set_bit(int nr, unsigned long *addr) 0009 { 0010 addr[nr / __BITS_PER_LONG] |= 1UL << (nr % __BITS_PER_LONG); 0011 } 0012 0013 static inline void clear_bit(int nr, unsigned long *addr) 0014 { 0015 addr[nr / __BITS_PER_LONG] &= ~(1UL << (nr % __BITS_PER_LONG)); 0016 } 0017 0018 #endif /* _TOOLS_LINUX_ASM_GENERIC_BITOPS_ATOMIC_H_ */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |