Skip to content

Commit 29b09d1

Browse files
committed
remove the exceptional values
1 parent 0210099 commit 29b09d1

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

libc/src/math/generic/asinpif16.cpp

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,6 @@ namespace LIBC_NAMESPACE_DECL {
2323
#ifndef LIBC_MATH_HAS_SKIP_ACCURATE_PASS
2424
static constexpr size_t N_ASINPIF16_EXCEPTS = 3;
2525

26-
static constexpr fputil::ExceptValues<float16, N_ASINPIF16_EXCEPTS>
27-
ASINPIF16_EXCEPTS{{
28-
// (input_hex, RZ_output_hex, RU_offset, RD_offset, RN_offset)
29-
// x = 0.0, asinfpi(0.0) = 0.0
30-
{0x0000, 0x0000, 0, 0, 0},
31-
32-
// x = 0x1.004p-3, asinpif16(x) = 0x1.47p-5 (RZ)
33-
{0x3001U, 0x291cU, 1U, 0U, 1U},
34-
// x = 0x1.0bp-1, asinpif16(x) = 0x1.658p-3 (RZ)
35-
{0x382cU, 0x3196U, 1U, 0U, 0U},
36-
}};
37-
38-
#endif // !LIBC_MATH_HAS_SKIP_ACCURATE_PASS
39-
4026
LLVM_LIBC_FUNCTION(float16, asinpif16, (float16 x)) {
4127
using FPBits = fputil::FPBits<float16>;
4228

@@ -63,13 +49,6 @@ LLVM_LIBC_FUNCTION(float16, asinpif16, (float16 x)) {
6349
return FPBits::quiet_nan().get_val();
6450
}
6551

66-
#ifndef LIBC_MATH_HAS_SKIP_ACCURATE_PASS
67-
// exceptional values
68-
if (auto r = ASINPIF16_EXCEPTS.lookup(xbits.uintval());
69-
LIBC_UNLIKELY(r.has_value()))
70-
return r.value();
71-
#endif // !LIBC_MATH_HAS_SKIP_ACCURATE_PASS
72-
7352
// the coefficients for the polynomial approximation of asin(x)/pi in the
7453
// range [0, 0.5] extracted using python-sympy
7554
//

0 commit comments

Comments
 (0)