diff options
author | Chris Robinson <[email protected]> | 2022-02-20 04:13:03 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-02-20 04:13:03 -0800 |
commit | 023ad6320be73d1cee3facad1722e94d7258f2bb (patch) | |
tree | 1bf32b6d4a3e26ac821c47935c5b36f01eeee601 /al/eax_api.h | |
parent | 0e26e0809d1aaa8501f310982b554565dc9e8beb (diff) |
Inline a couple more equality operators
Diffstat (limited to 'al/eax_api.h')
-rw-r--r-- | al/eax_api.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/al/eax_api.h b/al/eax_api.h index c5004ec6..28e8881e 100644 --- a/al/eax_api.h +++ b/al/eax_api.h @@ -157,13 +157,11 @@ struct EAXVECTOR float z; }; // EAXVECTOR -bool operator==( - const EAXVECTOR& lhs, - const EAXVECTOR& rhs) noexcept; +inline bool operator==(const EAXVECTOR& lhs, const EAXVECTOR& rhs) noexcept +{ return std::memcmp(&lhs, &rhs, sizeof(EAXVECTOR)) == 0; } -bool operator!=( - const EAXVECTOR& lhs, - const EAXVECTOR& rhs) noexcept; +inline bool operator!=(const EAXVECTOR& lhs, const EAXVECTOR& rhs) noexcept +{ return !(lhs == rhs); } extern const GUID EAXPROPERTYID_EAX40_Context; |