Skip to content

Commit 513112c

Browse files
committed
Remove redundant condition
1 parent 4758caf commit 513112c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libc/src/math/generic/tanhf16.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ LLVM_LIBC_FUNCTION(float16, tanhf16, (float16 x)) {
4040

4141
// When -2^(-14) <= x <= -2^(-9), or |x| <= 0x1.d2p-4,
4242
// or |x| >= atanh(1 - 2^(-11)), or x is NaN.
43-
if (LIBC_UNLIKELY((x_u >= 0x8400U && x_u <= 0x9800U) || x_abs <= 0x2f48U ||
44-
x_abs >= 0x4429U)) {
43+
if (LIBC_UNLIKELY(x_abs <= 0x2f48U || x_abs >= 0x4429U)) {
4544
// tanh(NaN) = NaN
4645
if (x_bits.is_nan()) {
4746
if (x_bits.is_signaling_nan()) {

0 commit comments

Comments
 (0)