Add LoongArch support
[urcu.git] / include / urcu / uatomic / gcc.h
1 // SPDX-FileCopyrightText: 1991-1994 by Xerox Corporation. All rights reserved.
2 // SPDX-FileCopyrightText: 1996-1999 by Silicon Graphics. All rights reserved.
3 // SPDX-FileCopyrightText: 1999-2004 Hewlett-Packard Development Company, L.P.
4 // SPDX-FileCopyrightText: 2009 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
5 // SPDX-FileCopyrightText: 2010 Paul E. McKenney, IBM Corporation
6 //
7 // SPDX-License-Identifier: LicenseRef-Boehm-GC
8
9 #ifndef _URCU_ARCH_UATOMIC_GCC_H
10 #define _URCU_ARCH_UATOMIC_GCC_H
11
12 /*
13 * Code inspired from libuatomic_ops-1.2, inherited in part from the
14 * Boehm-Demers-Weiser conservative garbage collector.
15 */
16
17 #include <urcu/compiler.h>
18 #include <urcu/system.h>
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 /*
25 * If your platform doesn't have a full set of atomics, you will need
26 * a separate uatomic_arch_*.h file for your architecture. Otherwise,
27 * just rely on the definitions in uatomic/generic.h.
28 */
29 #define UATOMIC_HAS_ATOMIC_BYTE
30 #define UATOMIC_HAS_ATOMIC_SHORT
31
32 #ifdef __cplusplus
33 }
34 #endif
35
36 #include <urcu/uatomic/generic.h>
37
38 #endif /* _URCU_ARCH_UATOMIC_GCC_H */
This page took 0.032881 seconds and 4 git commands to generate.