11 changes: 9 additions & 2 deletions libc/test/src/math/atanf_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,15 @@ TEST_F(LlvmLibcAtanfTest, InFloatRange) {

// For small values, tanh(x) is x.
TEST_F(LlvmLibcAtanfTest, SpecialValues) {
uint32_t val_arr[] = {0x3d8d6b23U, 0x3feefcfbU, 0xbd8d6b23U,
0xbfeefcfbU, 0x7F800000U, 0xFF800000U};
uint32_t val_arr[] = {
0x3d8d6b23U, // x = 0x1.1ad646p-4f
0x3feefcfbU, // x = 0x1.ddf9f6p+0f
0xbd8d6b23U, // x = -0x1.1ad646p-4f
0xbfeefcfbU, // x = -0x1.ddf9f6p+0f
0x7F800000U, // x = +Inf
0xFF800000U, // x = -Inf
0xbffe2ec1U, // x = -0x1.fc5d82p+0f
};
for (uint32_t v : val_arr) {
float x = FPBits(v).get_val();
EXPECT_MPFR_MATCH_ALL_ROUNDING(mpfr::Operation::Atan, x,
Expand Down
2 changes: 1 addition & 1 deletion libc/test/src/math/exhaustive/atanf_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ TEST_F(LlvmLibcAtanfExhaustiveTest, PostiveRange) {
}

// Range: [-Inf, 0];
static constexpr uint32_t NEG_START = 0xb000'0000U;
static constexpr uint32_t NEG_START = 0x8000'0000U;
static constexpr uint32_t NEG_STOP = 0xff80'0000U;

TEST_F(LlvmLibcAtanfExhaustiveTest, NegativeRange) {
Expand Down
34 changes: 0 additions & 34 deletions libc/test/src/math/inv_trigf_utils_test.cpp

This file was deleted.

4 changes: 0 additions & 4 deletions utils/bazel/llvm-project-overlay/libc/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -1252,13 +1252,9 @@ libc_support_library(
hdrs = ["src/math/generic/inv_trigf_utils.h"],
deps = [
":__support_common",
":__support_fputil_fenv_impl",
":__support_fputil_fma",
":__support_fputil_fp_bits",
":__support_fputil_multiply_add",
":__support_fputil_nearest_integer",
":__support_fputil_polyeval",
":math_utils",
],
)

Expand Down