summaryrefslogtreecommitdiff
path: root/AK/FixedPoint.h
diff options
context:
space:
mode:
Diffstat (limited to 'AK/FixedPoint.h')
-rw-r--r--AK/FixedPoint.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/AK/FixedPoint.h b/AK/FixedPoint.h
index 3836077775..72948d1c50 100644
--- a/AK/FixedPoint.h
+++ b/AK/FixedPoint.h
@@ -74,6 +74,13 @@ public:
return value;
}
+ static constexpr This create_raw(Underlying value)
+ {
+ This t {};
+ t.raw() = value;
+ return t;
+ }
+
constexpr Underlying raw() const
{
return m_value;
@@ -379,13 +386,6 @@ private:
return FixedPoint<P, U>::create_raw(raw_value);
}
- static This create_raw(Underlying value)
- {
- This t {};
- t.raw() = value;
- return t;
- }
-
Underlying m_value;
};