1 // SPDX-FileCopyrightText: 2021 Wang Jing <wangjing@loongson.cn>
3 // SPDX-License-Identifier: MIT
5 #ifndef _URCU_UATOMIC_ARCH_LOONGARCH_H
6 #define _URCU_UATOMIC_ARCH_LOONGARCH_H
9 * Atomic exchange operations for the LoongArch architecture. Let GCC do it.
12 #include <urcu/compiler.h>
13 #include <urcu/system.h>
20 * LoongArch implements byte and short atomics with LL/SC instructions,
21 * which retry if the cache line is modified concurrently between LL and
24 #define UATOMIC_HAS_ATOMIC_BYTE
25 #define UATOMIC_HAS_ATOMIC_SHORT
31 #include <urcu/uatomic/generic.h>
33 #endif /* _URCU_UATOMIC_ARCH_LOONGARCH_H */
This page took 0.030816 seconds and 5 git commands to generate.