diff options
Diffstat (limited to 'AK/FixedPoint.h')
-rw-r--r-- | AK/FixedPoint.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/AK/FixedPoint.h b/AK/FixedPoint.h index 69618e4972..d409251300 100644 --- a/AK/FixedPoint.h +++ b/AK/FixedPoint.h @@ -157,12 +157,14 @@ public: return y; } - constexpr bool signbit() const requires(IsSigned<Underlying>) + constexpr bool signbit() const + requires(IsSigned<Underlying>) { return m_value >> (sizeof(Underlying) * 8 - 1); } - constexpr This operator-() const requires(IsSigned<Underlying>) + constexpr This operator-() const + requires(IsSigned<Underlying>) { return create_raw(-m_value); } |