Skip to content

Commit d4a6b4f

Browse files
committed
Add back fputil::cast
1 parent a83e0b1 commit d4a6b4f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libc/src/math/generic/hypotf16.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ LLVM_LIBC_FUNCTION(float16, hypotf16, (float16 x, float16 y)) {
5151
<< FPBits::FRACTION_LEN)))
5252
return x_abs.get_val() + y_abs.get_val();
5353

54-
float af = static_cast<float>(a_bits.get_val());
55-
float bf = static_cast<float>(b_bits.get_val());
54+
float af = fputil::cast<float>(a_bits.get_val());
55+
float bf = fputil::cast<float>(b_bits.get_val());
5656

5757
// These squares are exact.
5858
float a_sq = af * af;
@@ -81,7 +81,7 @@ LLVM_LIBC_FUNCTION(float16, hypotf16, (float16 x, float16 y)) {
8181
return fputil::cast<float16>(FloatBits(r_u).get_val());
8282
}
8383

84-
return static_cast<float16>(result.get_val());
84+
return fputil::cast<float16>(result.get_val());
8585
}
8686

8787
} // namespace LIBC_NAMESPACE_DECL

0 commit comments

Comments
 (0)