X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=include%2Furcu%2Fuatomic.h;fp=include%2Furcu%2Fuatomic.h;h=2fb5fd40eefcc127547bdd84f04dd1d161c7e6b0;hp=0000000000000000000000000000000000000000;hb=0b1e236d1711f4f9076f73a093ece05aca00eca4;hpb=c0d1e7df9c367292aaea72acc6f52d1db051c9c0 diff --git a/include/urcu/uatomic.h b/include/urcu/uatomic.h new file mode 100644 index 0000000..2fb5fd4 --- /dev/null +++ b/include/urcu/uatomic.h @@ -0,0 +1,58 @@ +/* + * urcu/uatomic.h + * + * Copyright (c) 2020 Michael Jeanson + * + * 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 + +#if defined(URCU_ARCH_X86) +#include +#elif defined(URCU_ARCH_PPC) +#include +#elif defined(URCU_ARCH_S390) +#include +#elif defined(URCU_ARCH_SPARC64) +#include +#elif defined(URCU_ARCH_ALPHA) +#include +#elif defined(URCU_ARCH_IA64) +#include +#elif defined(URCU_ARCH_ARM) +#include +#elif defined(URCU_ARCH_AARCH64) +#include +#elif defined(URCU_ARCH_MIPS) +#include +#elif defined(URCU_ARCH_NIOS2) +#include +#elif defined(URCU_ARCH_TILE) +#include +#elif defined(URCU_ARCH_HPPA) +#include +#elif defined(URCU_ARCH_M68K) +#include +#elif defined(URCU_ARCH_RISCV) +#include +#else +#error "Cannot build: unrecognized architecture, see ." +#endif + +#endif /* _URCU_UATOMIC_H */