Skip to content

Commit

Permalink
Do not use yield asm instruction on arm32
Browse files Browse the repository at this point in the history
`yield` may not exist on older ARM processors.

Fixes #1250
  • Loading branch information
rui314 committed May 3, 2024
1 parent b237fd1 commit f0f61cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ inline bool remove_prefix(std::string_view &s, std::string_view prefix) {
static inline void pause() {
#if defined(__x86_64__)
asm volatile("pause");
#elif defined(__arm__) || defined(__aarch64__)
#elif defined(__aarch64__)
asm volatile("yield");
#endif
}
Expand Down

0 comments on commit f0f61cc

Please sign in to comment.