mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-22 02:26:11 +00:00
AK: Always inline some Checked methods
Once again, we need to hint the compiler that it should inline the function, and then it is able to eliminate the assertion.
This commit is contained in:
parent
75e42648e1
commit
c3db694d9b
|
@ -166,13 +166,13 @@ public:
|
|||
return m_overflow;
|
||||
}
|
||||
|
||||
bool operator!() const
|
||||
ALWAYS_INLINE bool operator!() const
|
||||
{
|
||||
ASSERT(!m_overflow);
|
||||
return !m_value;
|
||||
}
|
||||
|
||||
T value() const
|
||||
ALWAYS_INLINE T value() const
|
||||
{
|
||||
ASSERT(!m_overflow);
|
||||
return m_value;
|
||||
|
|
Loading…
Reference in a new issue