Skip to content

Commit 7b34e70

Browse files
committed
Address comments.
1 parent bed5228 commit 7b34e70

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

libc/src/math/generic/powf.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -856,10 +856,8 @@ LLVM_LIBC_FUNCTION(float, powf, (float x, float y)) {
856856
exp2_hi_mid_dd.hi = exp2_hi_mid;
857857

858858
double r_dd = powf_double_double(idx_x, dx, y6, lo6_hi, exp2_hi_mid_dd);
859-
float r_f = static_cast<float>(r_dd);
860859

861-
// Only fix signed zeros for exact zeros results.
862-
return r_dd != 0 ? r_f : r_f + 0.0f;
860+
return static_cast<float>(r_dd);
863861
}
864862

865863
} // namespace LIBC_NAMESPACE_DECL

0 commit comments

Comments
 (0)