mdbx: don't use yield instruction on ARM if unsupported.

Change-Id: I0b01d783fe4336b089f4b051fb61c203b5879aa5
This commit is contained in:
Leonid Yuriev 2020-10-04 14:54:11 +03:00
parent 280ed17ea2
commit 70b615e8d4

View File

@ -763,7 +763,8 @@ static __always_inline void atomic_yield(void) {
#else #else
__asm__ __volatile__("hint @pause"); __asm__ __volatile__("hint @pause");
#endif #endif
#elif defined(__arm__) || defined(__aarch64__) #elif defined(__aarch64__) || (defined(__ARM_ARCH) && __ARM_ARCH > 6) || \
defined(__ARM_ARCH_6K__)
#ifdef __CC_ARM #ifdef __CC_ARM
__yield(); __yield();
#else #else