mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
Use yield on aarch in spin locks
This commit is contained in:
parent
cba15bc77a
commit
dbb8d66f22
1 changed files with 2 additions and 0 deletions
2
third_party/ggml/ggml.c
vendored
2
third_party/ggml/ggml.c
vendored
|
@ -11628,6 +11628,8 @@ typedef int ggml_lock_t;
|
|||
#define ggml_lock_destroy(x) UNUSED(x)
|
||||
#if defined(__x86_64__) || (defined(_MSC_VER) && defined(_M_AMD64))
|
||||
#define ggml_lock_lock(x) _mm_pause()
|
||||
#elif defined(__aarch64__)
|
||||
#define ggml_lock_lock(x) asm("yield")
|
||||
#else
|
||||
#define ggml_lock_lock(x) UNUSED(x)
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue