We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a300836 + d7a08c5 commit d2d3f09Copy full SHA for d2d3f09
libc/src/__support/FPUtil/bfloat16.h
@@ -29,7 +29,9 @@ struct BFloat16 {
29
30
LIBC_INLINE BFloat16() = default;
31
32
- template <typename T> LIBC_INLINE constexpr explicit BFloat16(T value) {
+ template <typename T>
33
+ LIBC_INLINE constexpr explicit BFloat16(T value)
34
+ : bits(static_cast<uint16_t>(0U)) {
35
if constexpr (cpp::is_floating_point_v<T>) {
36
bits = fputil::cast<bfloat16>(value).bits;
37
} else if constexpr (cpp::is_integral_v<T>) {
0 commit comments