FILE
atomic.h
File preview with syntax highlighting.
linux-6.19.14/tools/include/asm-generic/bitops/atomic.h
1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef _TOOLS_LINUX_ASM_GENERIC_BITOPS_ATOMIC_H_ 3#define _TOOLS_LINUX_ASM_GENERIC_BITOPS_ATOMIC_H_ 4 5#include <asm/types.h> 6#include <asm/bitsperlong.h> 7 8/* 9 * Just alias the test versions, all of the compiler built-in atomics "fetch", 10 * and optimizing compile-time constants on x86 isn't worth the complexity. 11 */ 12#define set_bit test_and_set_bit 13#define clear_bit test_and_clear_bit 14 15#endif /* _TOOLS_LINUX_ASM_GENERIC_BITOPS_ATOMIC_H_ */
~/
Read-only file preview.