fix: remove BFloat16(uint16) ctor

Signed-off-by: Krishna Pandey <kpandey81930@gmail.com>
This commit is contained in:
Krishna Pandey 2025-08-21 05:12:43 +05:30
parent 5ad41c59bf
commit 3486509d13
No known key found for this signature in database
GPG Key ID: 20FD86C0096672D5

View File

@ -29,8 +29,6 @@ struct BFloat16 {
LIBC_INLINE BFloat16() = default;
LIBC_INLINE constexpr explicit BFloat16(uint16_t bits) : bits(bits) {}
template <typename T> LIBC_INLINE constexpr explicit BFloat16(T value) {
if constexpr (cpp::is_floating_point_v<T>) {
bits = fputil::cast<bfloat16>(value).bits;