Skip to content

Commit 0210099

Browse files
committed
fix: x_uint is unused when enableLIBC_MATH_HAS_SKIP_ACCURATE_PASS
1 parent fcc4f8a commit 0210099

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libc/src/math/generic/asinpif16.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ LLVM_LIBC_FUNCTION(float16, asinpif16, (float16 x)) {
4141
using FPBits = fputil::FPBits<float16>;
4242

4343
FPBits xbits(x);
44-
uint16_t x_uint = xbits.uintval();
4544
bool is_neg = xbits.is_neg();
4645
float16 x_abs = xbits.abs().get_val();
4746

@@ -66,7 +65,8 @@ LLVM_LIBC_FUNCTION(float16, asinpif16, (float16 x)) {
6665

6766
#ifndef LIBC_MATH_HAS_SKIP_ACCURATE_PASS
6867
// exceptional values
69-
if (auto r = ASINPIF16_EXCEPTS.lookup(x_uint); LIBC_UNLIKELY(r.has_value()))
68+
if (auto r = ASINPIF16_EXCEPTS.lookup(xbits.uintval());
69+
LIBC_UNLIKELY(r.has_value()))
7070
return r.value();
7171
#endif // !LIBC_MATH_HAS_SKIP_ACCURATE_PASS
7272

0 commit comments

Comments
 (0)