From 809062ab3ae8ad143c17260c74adfbcec65e720c Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Sat, 6 Jul 2019 10:18:58 +0000 Subject: [PATCH] build: add support for aarch64 --- ittnotify/src/ittnotify/ittnotify_config.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ittnotify/src/ittnotify/ittnotify_config.h b/ittnotify/src/ittnotify/ittnotify_config.h index c131873..e6fd4a8 100644 --- a/ittnotify/src/ittnotify/ittnotify_config.h +++ b/ittnotify/src/ittnotify/ittnotify_config.h @@ -208,6 +208,10 @@ # define ITT_ARCH_PPC64 5 #endif /* ITT_ARCH_PPC64 */ +#ifndef ITT_ARCH_AARCH64 /* 64-bit ARM */ +# define ITT_ARCH_AARCH64 6 +#endif /* ITT_ARCH_AARCH64 */ + #ifndef ITT_ARCH # if defined _M_IX86 || defined __i386__ # define ITT_ARCH ITT_ARCH_IA32 @@ -217,6 +221,8 @@ # define ITT_ARCH ITT_ARCH_IA64 # elif defined _M_ARM || defined __arm__ # define ITT_ARCH ITT_ARCH_ARM +# elif defined __aarch64__ +# define ITT_ARCH ITT_ARCH_AARCH64 # elif defined __powerpc64__ # define ITT_ARCH ITT_ARCH_PPC64 # endif @@ -371,7 +377,7 @@ ITT_INLINE long __TBB_machine_fetchadd4(volatile void* ptr, long addend) : "memory"); return result; } -#elif ITT_ARCH==ITT_ARCH_ARM || ITT_ARCH==ITT_ARCH_PPC64 +#elif ITT_ARCH==ITT_ARCH_ARM || ITT_ARCH==ITT_ARCH_AARCH64 || ITT_ARCH==ITT_ARCH_PPC64 #define __TBB_machine_fetchadd4(addr, val) __sync_fetch_and_add(addr, val) #endif /* ITT_ARCH==ITT_ARCH_IA64 */ #ifndef ITT_SIMPLE_INIT