mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:27:35 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
8639d8bc21
commit
d26aabff04
140 changed files with 1202 additions and 723 deletions
|
@ -90,7 +90,7 @@ public:
|
|||
static const size_t mantissabits = M;
|
||||
|
||||
template<typename T>
|
||||
requires(IsIntegral<T>&& IsUnsigned<T> && sizeof(T) <= 8) constexpr FloatingPointBits(T bits)
|
||||
requires(IsIntegral<T> && IsUnsigned<T> && sizeof(T) <= 8) constexpr FloatingPointBits(T bits)
|
||||
: m_bits(bits)
|
||||
{
|
||||
}
|
||||
|
@ -105,8 +105,16 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
double as_double() const requires(S == 1 && E == 11 && M == 52) { return bit_cast<double>(m_bits); }
|
||||
float as_float() const requires(S == 1 && E == 8 && M == 23) { return bit_cast<float>(static_cast<u32>(m_bits)); }
|
||||
double as_double() const
|
||||
requires(S == 1 && E == 11 && M == 52)
|
||||
{
|
||||
return bit_cast<double>(m_bits);
|
||||
}
|
||||
float as_float() const
|
||||
requires(S == 1 && E == 8 && M == 23)
|
||||
{
|
||||
return bit_cast<float>(static_cast<u32>(m_bits));
|
||||
}
|
||||
u64 bits() const { return m_bits; }
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue