2
0
mirror of https://github.com/boostorg/atomic.git synced 2026-02-01 20:12:09 +00:00

Minor optimization.

This commit is contained in:
Andrey Semashev
2018-02-03 21:21:19 +03:00
parent 90e4a3ebc0
commit 5f80667cd3

View File

@@ -230,7 +230,7 @@ struct BOOST_ATOMIC_DETAIL_MAY_ALIAS storage128_t
BOOST_FORCEINLINE bool operator! () const BOOST_NOEXCEPT
{
return data[0] == 0 && data[1] == 0;
return (data[0] | data[1]) == 0u;
}
};