gh-131675: Fix `mi_atomic_yield` in mimalloc on 32-bit ARM (gh-131784) · python/cpython@03f6c8e · GitHub
Skip to content

Commit 03f6c8e

Browse files
authored
gh-131675: Fix mi_atomic_yield in mimalloc on 32-bit ARM (gh-131784)
Use the standard `__ARM_ARCH` macro, which is supported by GCC and Clang. The branching logic for of `__ARMEL__` has been removed so if the target architecture supports v7+ instructions, a yield is emitted, otherwise a nop is emitted. This covers both big and little endian scenarios. Signed-off-by: Vincent Fazio <vfazio@gmail.com>
1 parent 0cd4bef commit 03f6c8e

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

Include/internal/mimalloc/mimalloc/atomic.h

Lines changed: 10 additions & 7 deletions
Lines changed: 1 addition & 0 deletions

0 commit comments

Comments
 (0)