File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
libc/src/__support/FPUtil Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -57,27 +57,6 @@ struct BFloat16 {
5757 uint32_t x_bits = static_cast <uint32_t >(bits) << 16U ;
5858 return cpp::bit_cast<float >(x_bits);
5959 }
60-
61- LIBC_INLINE constexpr BFloat16 operator -() const {
62- fputil::FPBits<bfloat16> result (*this );
63- result.set_sign (result.is_pos () ? Sign::NEG : Sign::POS);
64- return result.get_val ();
65- }
66-
67- // TODO: this need to be changed!
68- LIBC_INLINE constexpr BFloat16 operator +(BFloat16 x) {
69- float a = static_cast <float >(*this );
70- float b = static_cast <float >(x);
71- return BFloat16 (a + b);
72- }
73-
74- // TODO: this need to be changed!
75- LIBC_INLINE constexpr BFloat16 operator -(BFloat16 x) {
76- float a = static_cast <float >(*this );
77- float b = static_cast <float >(x);
78- return BFloat16 (a - b);
79- }
80-
8160}; // struct BFloat16
8261
8362} // namespace fputil
You can’t perform that action at this time.
0 commit comments