diff --git a/rpcs3/util/atomic.hpp b/rpcs3/util/atomic.hpp index 96f6707f3c..3faf88304b 100644 --- a/rpcs3/util/atomic.hpp +++ b/rpcs3/util/atomic.hpp @@ -42,7 +42,6 @@ namespace atomic_wait byteswap = 1 << 6, // Perform byteswap on both arguments and masks when applicable }; - constexpr op_flag op_ne = {}; constexpr op_flag op_be = std::endian::native == std::endian::little ? op_flag::byteswap : op_flag{0}; constexpr op_flag op_le = std::endian::native == std::endian::little ? op_flag{0} : op_flag::byteswap; @@ -61,6 +60,8 @@ namespace atomic_wait return op{static_cast(static_cast(lhs) | static_cast(rhs))}; } + constexpr op op_ne = op::eq | op_flag::inverse; + struct info { const void* data;