This commit is contained in:
Alexey Milovidov 2024-11-11 02:15:31 +01:00
parent 3e50cf94fe
commit 3a855f501c
3 changed files with 2 additions and 9 deletions

View File

@ -230,4 +230,4 @@ struct DecomposedFloat
using DecomposedFloat64 = DecomposedFloat<double>;
using DecomposedFloat32 = DecomposedFloat<float>;
using DecomposedFloat16 = DecomposedFloat<__bf16>;
using DecomposedFloat16 = DecomposedFloat<BFloat16>;

View File

@ -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;

View File

@ -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