Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions libc/src/math/generic/hypotf16.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ LLVM_LIBC_FUNCTION(float16, hypotf16, (float16 x, float16 y)) {
<< FPBits::FRACTION_LEN)))
return x_abs.get_val() + y_abs.get_val();

float af = fputil::cast<float>(a_bits.get_val());
float bf = fputil::cast<float>(b_bits.get_val());
float af = static_cast<float>(a_bits.get_val());
float bf = static_cast<float>(b_bits.get_val());

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

return fputil::cast<float16>(result.get_val());
return static_cast<float16>(result.get_val());
}

} // namespace LIBC_NAMESPACE_DECL
2 changes: 1 addition & 1 deletion libc/test/src/math/performance_testing/hypotf16_perf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@

BINARY_OP_SINGLE_OUTPUT_PERF(float16, float16, LIBC_NAMESPACE::hypotf16,
LIBC_NAMESPACE::fputil::hypot<float16>,
"hypotf16_perf.log");
"hypotf16_perf.log")
Loading