mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-15 05:16:30 +00:00
Use yield on aarch in spin locks
This commit is contained in:
parent
b3e3359d22
commit
95fab334e4
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…
Add table
Reference in a new issue