Skip to content

Commit 9b98671

Browse files
author
Maxim Egorushkin
committed
Unnecessary memory clobber removed from asm statements for ARM.
1 parent 92d114b commit 9b98671

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/atomic_queue/defs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ ATOMIC_QUEUE_SINLINE void spin_loop_pause() noexcept {
103103
defined(__ARM_ARCH_7S__) || \
104104
defined(__ARM_ARCH_8A__) || \
105105
defined(__aarch64__))
106-
__asm__("yield" ::: "memory");
106+
__asm__("yield");
107107
#elif defined(_M_ARM64)
108108
__yield();
109109
#else
110-
__asm__("nop" ::: "memory");
110+
__asm__("nop");
111111
#endif
112112
}
113113

0 commit comments

Comments
 (0)