diff options
author | Haru <haru@dotalux.com> | 2020-06-28 01:26:45 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2020-06-28 12:34:52 +0200 |
commit | e3e1acb092a5ba8ddc4dcb116ec4bcf7686e140d (patch) | |
tree | 966aef53c8c6543bee3fc1ee3b7ac1a29f5389a5 /src/common/atomic.h | |
parent | 373d9e0d6395cd9fff55c55e1cff4ee09e241fa8 (diff) | |
download | hercules-e3e1acb092a5ba8ddc4dcb116ec4bcf7686e140d.tar.gz hercules-e3e1acb092a5ba8ddc4dcb116ec4bcf7686e140d.tar.bz2 hercules-e3e1acb092a5ba8ddc4dcb116ec4bcf7686e140d.tar.xz hercules-e3e1acb092a5ba8ddc4dcb116ec4bcf7686e140d.zip |
Add detection of ARMv8 and improve detection of ARMv7
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common/atomic.h')
-rw-r--r-- | src/common/atomic.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/atomic.h b/src/common/atomic.h index 0d15d50d7..b9157373f 100644 --- a/src/common/atomic.h +++ b/src/common/atomic.h @@ -103,8 +103,9 @@ forceinline volatile int64 InterlockedExchange64(volatile int64 *target, int64 v // The __sync functions are available on x86 or ARMv6+ #if !defined(__x86_64__) && !defined(__i386__) \ + && !defined(__ppc64__) && ! defined(__powerpc64__) \ && ( !defined(__ARM_ARCH_VERSION__) || __ARM_ARCH_VERSION__ < 6 ) -//#error Your Target Platfrom is not supported +#error Target platform currently not supported #endif static forceinline int64 InterlockedExchangeAdd64(volatile int64 *addend, int64 increment){ |