mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-29 00:33:01 +00:00
atomic.hpp: redefine op::ne to actually mean "not equal"
WTF is "native endianness", it's native by default.
This commit is contained in:
parent
e38eaa7cd7
commit
280f5f0b54
@ -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<u8>(static_cast<u8>(lhs) | static_cast<u8>(rhs))};
|
||||
}
|
||||
|
||||
constexpr op op_ne = op::eq | op_flag::inverse;
|
||||
|
||||
struct info
|
||||
{
|
||||
const void* data;
|
||||
|
Loading…
x
Reference in New Issue
Block a user