mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Cleanups
This commit is contained in:
parent
3e50cf94fe
commit
3a855f501c
@ -230,4 +230,4 @@ struct DecomposedFloat
|
||||
|
||||
using DecomposedFloat64 = DecomposedFloat<double>;
|
||||
using DecomposedFloat32 = DecomposedFloat<float>;
|
||||
using DecomposedFloat16 = DecomposedFloat<__bf16>;
|
||||
using DecomposedFloat16 = DecomposedFloat<BFloat16>;
|
||||
|
@ -118,7 +118,6 @@ public:
|
||||
constexpr operator long double() const noexcept;
|
||||
constexpr operator double() const noexcept;
|
||||
constexpr operator float() const noexcept;
|
||||
constexpr operator __bf16() const noexcept;
|
||||
|
||||
struct _impl;
|
||||
|
||||
|
@ -154,7 +154,7 @@ struct common_type<wide::integer<Bits, Signed>, Arithmetic>
|
||||
static_assert(wide::ArithmeticConcept<Arithmetic>());
|
||||
|
||||
using type = std::conditional_t<
|
||||
std::is_floating_point_v<Arithmetic> || std::is_same_v<Arithmetic, __bf16>,
|
||||
std::is_floating_point_v<Arithmetic>,
|
||||
Arithmetic,
|
||||
std::conditional_t<
|
||||
sizeof(Arithmetic) * 8 < Bits,
|
||||
@ -1300,12 +1300,6 @@ constexpr integer<Bits, Signed>::operator float() const noexcept
|
||||
return static_cast<float>(static_cast<long double>(*this));
|
||||
}
|
||||
|
||||
template <size_t Bits, typename Signed>
|
||||
constexpr integer<Bits, Signed>::operator __bf16() const noexcept
|
||||
{
|
||||
return static_cast<__bf16>(static_cast<long double>(*this));
|
||||
}
|
||||
|
||||
// Unary operators
|
||||
template <size_t Bits, typename Signed>
|
||||
constexpr integer<Bits, Signed> operator~(const integer<Bits, Signed> & lhs) noexcept
|
||||
|
Loading…
Reference in New Issue
Block a user