diff options
author | Hans Hagen <pragma@wxs.nl> | 2022-12-29 15:11:22 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2022-12-29 15:11:22 +0100 |
commit | 62d980c99a617ff260f29ac2d3bdb084049f25b0 (patch) | |
tree | 783dca2fc5608a9b27c7691eda3ee05073b75fe5 /source/luametatex/source/libraries/mimalloc/include/mimalloc-atomic.h | |
parent | db25374e65d39dc254ddce11b40ad4a95e6a385b (diff) | |
download | context-62d980c99a617ff260f29ac2d3bdb084049f25b0.tar.gz |
2022-12-29 14:31:00
Diffstat (limited to 'source/luametatex/source/libraries/mimalloc/include/mimalloc-atomic.h')
-rw-r--r-- | source/luametatex/source/libraries/mimalloc/include/mimalloc-atomic.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/luametatex/source/libraries/mimalloc/include/mimalloc-atomic.h b/source/luametatex/source/libraries/mimalloc/include/mimalloc-atomic.h index 7ad5da585..c66f80493 100644 --- a/source/luametatex/source/libraries/mimalloc/include/mimalloc-atomic.h +++ b/source/luametatex/source/libraries/mimalloc/include/mimalloc-atomic.h @@ -11,9 +11,9 @@ terms of the MIT license. A copy of the license can be found in the file // -------------------------------------------------------------------------------------------- // Atomics // We need to be portable between C, C++, and MSVC. -// We base the primitives on the C/C++ atomics and create a mimimal wrapper for MSVC in C compilation mode. -// This is why we try to use only `uintptr_t` and `<type>*` as atomic types. -// To gain better insight in the range of used atomics, we use explicitly named memory order operations +// We base the primitives on the C/C++ atomics and create a mimimal wrapper for MSVC in C compilation mode. +// This is why we try to use only `uintptr_t` and `<type>*` as atomic types. +// To gain better insight in the range of used atomics, we use explicitly named memory order operations // instead of passing the memory order as a parameter. // ----------------------------------------------------------------------------------------------- @@ -30,7 +30,7 @@ terms of the MIT license. A copy of the license can be found in the file #endif #elif defined(_MSC_VER) // Use MSVC C wrapper for C11 atomics -#define _Atomic(tp) tp +#define _Atomic(tp) tp #define MI_ATOMIC_VAR_INIT(x) x #define mi_atomic(name) mi_atomic_##name #define mi_memory_order(name) mi_memory_order_##name @@ -275,7 +275,7 @@ static inline intptr_t mi_atomic_subi(_Atomic(intptr_t)*p, intptr_t sub) { return (intptr_t)mi_atomic_addi(p, -sub); } -// Yield +// Yield #if defined(__cplusplus) #include <thread> static inline void mi_atomic_yield(void) { |