xref: /kernel/linux/linux-6.6/tools/include/asm-generic/bitops/atomic.h (revision 62306a36)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/tools/include/asm-generic/bitops/
162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci#ifndef _TOOLS_LINUX_ASM_GENERIC_BITOPS_ATOMIC_H_
362306a36Sopenharmony_ci#define _TOOLS_LINUX_ASM_GENERIC_BITOPS_ATOMIC_H_
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci#include <asm/types.h>
662306a36Sopenharmony_ci#include <asm/bitsperlong.h>
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci/*
962306a36Sopenharmony_ci * Just alias the test versions, all of the compiler built-in atomics "fetch",
1062306a36Sopenharmony_ci * and optimizing compile-time constants on x86 isn't worth the complexity.
1162306a36Sopenharmony_ci */
1262306a36Sopenharmony_ci#define set_bit test_and_set_bit
1362306a36Sopenharmony_ci#define clear_bit test_and_clear_bit
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ci#endif /* _TOOLS_LINUX_ASM_GENERIC_BITOPS_ATOMIC_H_ */
16

Indexes created Thu Nov 07 10:32:03 CST 2024