Skip to content

Commit 515d880

Browse files
committed
chore: remove temp functions
Signed-off-by: Krishna Pandey <[email protected]>
1 parent ac98be7 commit 515d880

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

libc/src/__support/FPUtil/bfloat16.h

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)