mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:47:35 +00:00
AK: Make FixedPoint::create_raw public and constexpr
This commit is contained in:
parent
b347aebc3e
commit
9c5820326d
1 changed files with 7 additions and 7 deletions
|
@ -74,6 +74,13 @@ public:
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static constexpr This create_raw(Underlying value)
|
||||||
|
{
|
||||||
|
This t {};
|
||||||
|
t.raw() = value;
|
||||||
|
return t;
|
||||||
|
}
|
||||||
|
|
||||||
constexpr Underlying raw() const
|
constexpr Underlying raw() const
|
||||||
{
|
{
|
||||||
return m_value;
|
return m_value;
|
||||||
|
@ -379,13 +386,6 @@ private:
|
||||||
return FixedPoint<P, U>::create_raw(raw_value);
|
return FixedPoint<P, U>::create_raw(raw_value);
|
||||||
}
|
}
|
||||||
|
|
||||||
static This create_raw(Underlying value)
|
|
||||||
{
|
|
||||||
This t {};
|
|
||||||
t.raw() = value;
|
|
||||||
return t;
|
|
||||||
}
|
|
||||||
|
|
||||||
Underlying m_value;
|
Underlying m_value;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue