mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-11 11:11:46 +00:00
fix windows build error caused by mis-replacing text
This commit is contained in:
parent
b1d402d5fb
commit
fef9eac856
@ -48,15 +48,15 @@ typedef HANDLE pthread_t;
|
||||
typedef int thread_ret_t;
|
||||
|
||||
static void atomic_store(atomic_int *ptr, LONG val) {
|
||||
Intechan_lockedExchange(ptr, val);
|
||||
InterlockedExchange(ptr, val);
|
||||
}
|
||||
|
||||
static LONG atomic_load(atomic_int *ptr) {
|
||||
return Intechan_lockedCompareExchange(ptr, 0, 0);
|
||||
return InterlockedCompareExchange(ptr, 0, 0);
|
||||
}
|
||||
|
||||
static LONG atomic_fetch_add(atomic_int *ptr, LONG inc) {
|
||||
return Intechan_lockedExchangeAdd(ptr, inc);
|
||||
return InterlockedExchangeAdd(ptr, inc);
|
||||
}
|
||||
|
||||
static LONG atomic_fetch_sub(atomic_int *ptr, LONG dec) {
|
||||
|
Loading…
Reference in New Issue
Block a user