linux/arch/x86/include/asm/cmpxchg_64.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_X86_CMPXCHG_64_H
#define _ASM_X86_CMPXCHG_64_H

#define arch_cmpxchg64(ptr, o, n)

#define arch_cmpxchg64_local(ptr, o, n)

#define arch_try_cmpxchg64(ptr, po, n)

#define arch_try_cmpxchg64_local(ptr, po, n)

__u128_halves;

#define __arch_cmpxchg128(_ptr, _old, _new, _lock)

static __always_inline u128 arch_cmpxchg128(volatile u128 *ptr, u128 old, u128 new)
{}
#define arch_cmpxchg128

static __always_inline u128 arch_cmpxchg128_local(volatile u128 *ptr, u128 old, u128 new)
{}
#define arch_cmpxchg128_local

#define __arch_try_cmpxchg128(_ptr, _oldp, _new, _lock)

static __always_inline bool arch_try_cmpxchg128(volatile u128 *ptr, u128 *oldp, u128 new)
{}
#define arch_try_cmpxchg128

static __always_inline bool arch_try_cmpxchg128_local(volatile u128 *ptr, u128 *oldp, u128 new)
{}
#define arch_try_cmpxchg128_local

#define system_has_cmpxchg128()

#endif /* _ASM_X86_CMPXCHG_64_H */