Static arch and uatomic headers
[urcu.git] / include / urcu / uatomic.h
diff --git a/include/urcu/uatomic.h b/include/urcu/uatomic.h
new file mode 100644 (file)
index 0000000..2fb5fd4
--- /dev/null
@@ -0,0 +1,58 @@
+/*
+ * urcu/uatomic.h
+ *
+ * Copyright (c) 2020 Michael Jeanson <michael.jeanson@efficios.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef _URCU_UATOMIC_H
+#define _URCU_UATOMIC_H
+
+#include <urcu/arch.h>
+
+#if defined(URCU_ARCH_X86)
+#include <urcu/uatomic/x86.h>
+#elif defined(URCU_ARCH_PPC)
+#include <urcu/uatomic/ppc.h>
+#elif defined(URCU_ARCH_S390)
+#include <urcu/uatomic/s390.h>
+#elif defined(URCU_ARCH_SPARC64)
+#include <urcu/uatomic/sparc64.h>
+#elif defined(URCU_ARCH_ALPHA)
+#include <urcu/uatomic/alpha.h>
+#elif defined(URCU_ARCH_IA64)
+#include <urcu/uatomic/ia64.h>
+#elif defined(URCU_ARCH_ARM)
+#include <urcu/uatomic/arm.h>
+#elif defined(URCU_ARCH_AARCH64)
+#include <urcu/uatomic/aarch64.h>
+#elif defined(URCU_ARCH_MIPS)
+#include <urcu/uatomic/mips.h>
+#elif defined(URCU_ARCH_NIOS2)
+#include <urcu/uatomic/nios2.h>
+#elif defined(URCU_ARCH_TILE)
+#include <urcu/uatomic/tile.h>
+#elif defined(URCU_ARCH_HPPA)
+#include <urcu/uatomic/hppa.h>
+#elif defined(URCU_ARCH_M68K)
+#include <urcu/uatomic/m68k.h>
+#elif defined(URCU_ARCH_RISCV)
+#include <urcu/uatomic/riscv.h>
+#else
+#error "Cannot build: unrecognized architecture, see <urcu/arch.h>."
+#endif
+
+#endif /* _URCU_UATOMIC_H */
This page took 0.022969 seconds and 4 git commands to generate.