mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-03 14:09:31 +03:00
merge from dev
This commit is contained in:
commit
3d6065f987
1 changed files with 7 additions and 0 deletions
|
@ -266,6 +266,13 @@ static inline int64_t mi_atomic_addi64_relaxed(volatile _Atomic(int64_t)*p, int6
|
||||||
return current;
|
return current;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
static inline void mi_atomic_void_addi64_relaxed(volatile int64_t* p, const volatile int64_t* padd) {
|
||||||
|
const int64_t add = *padd;
|
||||||
|
if (add != 0) {
|
||||||
|
mi_atomic_addi64_relaxed((volatile _Atomic(int64_t)*)p, add);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static inline void mi_atomic_maxi64_relaxed(volatile _Atomic(int64_t)*p, int64_t x) {
|
static inline void mi_atomic_maxi64_relaxed(volatile _Atomic(int64_t)*p, int64_t x) {
|
||||||
int64_t current;
|
int64_t current;
|
||||||
do {
|
do {
|
||||||
|
|
Loading…
Add table
Reference in a new issue