mirror of
https://github.com/boostorg/atomic.git
synced 2026-02-01 20:12:09 +00:00
Minor optimization.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user