Skip to content

Commit f81198b

Browse files
committed
more fix
1 parent 7d71a09 commit f81198b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libc/src/math/generic/tanpif16.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ LLVM_LIBC_FUNCTION(float16, tanpif16, (float16 x)) {
4343
uint16_t x_u = xbits.uintval();
4444
uint16_t x_abs = x_u & 0x7fff;
4545

46-
if (LIBC_UNLIKELY(x_abs == 0U))
47-
return x;
48-
4946
// Handle exceptional values
5047
if (LIBC_UNLIKELY(x_abs <= 0x4335)) {
48+
if (LIBC_UNLIKELY(x_abs == 0U))
49+
return x;
50+
5151
bool x_sign = x_u >> 15;
5252
if (auto r = TANF16_EXCEPTS.lookup_odd(x_abs, x_sign);
5353
LIBC_UNLIKELY(r.has_value()))

0 commit comments

Comments
 (0)