Skip to content

Commit

Permalink
Remove braces from single-statement if in exp2m1f16
Browse files Browse the repository at this point in the history
  • Loading branch information
overmighty committed Oct 12, 2024
1 parent 5058e8c commit 1f17209
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libc/src/math/generic/exp2m1f16.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,9 @@ LLVM_LIBC_FUNCTION(float16, exp2m1f16, (float16 x)) {
return FPBits::one(Sign::NEG).get_val();

// When -12 < x < -11, round(2^x - 1, HP, RN) = -0x1.ffcp-1.
if (x_u < 0xca00U) {
if (x_u < 0xca00U)
return fputil::round_result_slightly_down(
fputil::cast<float16>(-0x1.ffcp-1));
}

// When x <= -12, round(2^x - 1, HP, RN) = -1.
switch (fputil::quick_get_round()) {
Expand Down

0 comments on commit 1f17209

Please sign in to comment.