mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 09:34:57 +09:00
Everywhere: Run clang-format
This commit is contained in:
parent
8639d8bc21
commit
d26aabff04
Notes:
sideshowbarker
2024-07-17 09:48:50 +09:00
Author: https://github.com/linusg
Commit: d26aabff04
Pull-request: https://github.com/SerenityOS/serenity/pull/15654
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/alimpfard
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