Add LoongArch support
[urcu.git] / include / urcu / uatomic / gcc.h
CommitLineData
d3d3857f
MJ
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
9c974100
PM
9#ifndef _URCU_ARCH_UATOMIC_GCC_H
10#define _URCU_ARCH_UATOMIC_GCC_H
11
67ecffc0 12/*
9c974100
PM
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
21extern "C" {
67ecffc0 22#endif
9c974100
PM
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,
a2e7bf9c 27 * just rely on the definitions in uatomic/generic.h.
9c974100
PM
28 */
29#define UATOMIC_HAS_ATOMIC_BYTE
30#define UATOMIC_HAS_ATOMIC_SHORT
31
67ecffc0 32#ifdef __cplusplus
9c974100
PM
33}
34#endif
35
a2e7bf9c 36#include <urcu/uatomic/generic.h>
9c974100
PM
37
38#endif /* _URCU_ARCH_UATOMIC_GCC_H */
This page took 0.048084 seconds and 4 git commands to generate.