Skip to content

Commit f08c4ed

Browse files
committed
remove expected value of x=+/-0.5
1 parent 0e904c9 commit f08c4ed

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

libc/src/math/generic/asinpif16.cpp

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ namespace LIBC_NAMESPACE_DECL {
2323
static constexpr float16 ONE_OVER_TWO = 0.5f16;
2424

2525
#ifndef LIBC_MATH_HAS_SKIP_ACCURATE_PASS
26-
static constexpr size_t N_ASINFPI_EXCEPTS = 5;
27-
static constexpr float16 ONE_OVER_SIX = 0.166748046875f16;
26+
static constexpr size_t N_ASINFPI_EXCEPTS = 3;
2827

2928
static constexpr fputil::ExceptValues<float16, N_ASINFPI_EXCEPTS>
3029
ASINFPI_EXCEPTS{{
@@ -33,21 +32,12 @@ static constexpr fputil::ExceptValues<float16, N_ASINFPI_EXCEPTS>
3332
{0x0000, 0x0000, 0, 0, 0},
3433

3534
// x = 1.0, asinfpi(1) = 1/2
36-
{(fputil::FPBits<float16>(-1.0f16)).uintval(),
37-
(fputil::FPBits<float16>(-ONE_OVER_TWO)).uintval(), 0, 0, 0},
35+
{(fputil::FPBits<float16>(1.0f16)).uintval(),
36+
(fputil::FPBits<float16>(ONE_OVER_TWO)).uintval(), 0, 0, 0},
3837

3938
// x = -1.0, asinfpi(-1.0) = -1/2
4039
{(fputil::FPBits<float16>(-1.0f16)).uintval(),
4140
(fputil::FPBits<float16>(-ONE_OVER_TWO)).uintval(), 0, 0, 0},
42-
43-
// x = 0.5, asinfpi(0.5) = 1/6
44-
{(fputil::FPBits<float16>(0.5f16)).uintval(),
45-
(fputil::FPBits<float16>(ONE_OVER_SIX)).uintval(), 0, 0, 0},
46-
47-
// x = -0.5, asinfpi(0.5) = -1/6
48-
{(fputil::FPBits<float16>(-0.5f16)).uintval(),
49-
(fputil::FPBits<float16>(-ONE_OVER_SIX)).uintval(), 0, 0, 0},
50-
5141
}};
5242
#endif // !LIBC_MATH_HAS_SKIP_ACCURATE_PASS
5343

0 commit comments

Comments
 (0)