mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
atomic.hpp: alter atomic_storage<>::store a bit
Always fallback to exchange. May improve codegen on gcc.
This commit is contained in:
parent
43952e18e2
commit
27097cbcfe
1 changed files with 1 additions and 1 deletions
|
@ -288,7 +288,7 @@ struct atomic_storage
|
|||
|
||||
static inline void store(T& dest, T value)
|
||||
{
|
||||
__atomic_store(&dest, &value, __ATOMIC_SEQ_CST);
|
||||
static_cast<void>(exchange(dest, value));
|
||||
}
|
||||
|
||||
static inline void release(T& dest, T value)
|
||||
|
|
Loading…
Add table
Reference in a new issue