Skip to content

Commit 1e6ce5e

Browse files
authored
[libc] Clean up unused math_utils.(h|cpp). (#88036)
1 parent 8671429 commit 1e6ce5e

File tree

8 files changed

+0
-150
lines changed

8 files changed

+0
-150
lines changed

libc/src/__support/FPUtil/generic/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,4 @@ add_header_library(
4141
libc.src.__support.FPUtil.fp_bits
4242
libc.src.__support.FPUtil.rounding_mode
4343
libc.src.__support.macros.optimization
44-
libc.src.math.generic.math_utils
4544
)

libc/src/__support/FPUtil/generic/FMod.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#include "src/__support/FPUtil/FEnvImpl.h"
1616
#include "src/__support/FPUtil/FPBits.h"
1717
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
18-
#include "src/math/generic/math_utils.h"
1918

2019
namespace LIBC_NAMESPACE {
2120
namespace fputil {

libc/src/math/generic/CMakeLists.txt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -95,18 +95,6 @@ add_entrypoint_object(
9595
libc.src.__support.FPUtil.nearest_integer_operations
9696
)
9797

98-
add_object_library(
99-
math_utils
100-
SRCS
101-
math_utils.cpp
102-
HDRS
103-
math_utils.h
104-
DEPENDS
105-
libc.hdr.math_macros
106-
libc.include.errno
107-
libc.src.errno.errno
108-
)
109-
11098
add_header_library(
11199
range_reduction
112100
HDRS
@@ -749,8 +737,6 @@ add_object_library(
749737
exp_utils.h
750738
SRCS
751739
exp_utils.cpp
752-
DEPENDS
753-
.math_utils
754740
)
755741

756742
add_entrypoint_object(

libc/src/math/generic/exp_utils.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "exp_utils.h"
10-
#include "math_utils.h"
1110

1211
namespace LIBC_NAMESPACE {
1312

libc/src/math/generic/explogxf.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#define LLVM_LIBC_SRC_MATH_GENERIC_EXPLOGXF_H
1111

1212
#include "common_constants.h"
13-
#include "math_utils.h"
1413
#include "src/__support/CPP/bit.h"
1514
#include "src/__support/CPP/optional.h"
1615
#include "src/__support/FPUtil/FEnvImpl.h"

libc/src/math/generic/math_utils.cpp

Lines changed: 0 additions & 21 deletions
This file was deleted.

libc/src/math/generic/math_utils.h

Lines changed: 0 additions & 95 deletions
This file was deleted.

utils/bazel/llvm-project-overlay/libc/BUILD.bazel

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,6 @@ libc_support_library(
702702
":__support_cpp_type_traits",
703703
":__support_fputil_fenv_impl",
704704
":__support_fputil_fp_bits",
705-
":math_utils",
706705
],
707706
)
708707

@@ -1243,19 +1242,6 @@ libc_function(
12431242

12441243
################################ math targets ################################
12451244

1246-
libc_support_library(
1247-
name = "math_utils",
1248-
srcs = ["src/math/generic/math_utils.cpp"],
1249-
hdrs = ["src/math/generic/math_utils.h"],
1250-
deps = [
1251-
"__support_cpp_bit",
1252-
"__support_cpp_type_traits",
1253-
":__support_common",
1254-
":errno",
1255-
":hdr_math_macros",
1256-
],
1257-
)
1258-
12591245
libc_support_library(
12601246
name = "common_constants",
12611247
srcs = ["src/math/generic/common_constants.cpp"],
@@ -1304,7 +1290,6 @@ libc_support_library(
13041290
":__support_fputil_nearest_integer",
13051291
":__support_fputil_polyeval",
13061292
":common_constants",
1307-
":math_utils",
13081293
],
13091294
)
13101295

@@ -1712,7 +1697,6 @@ libc_math_function(
17121697
":__support_fputil_rounding_mode",
17131698
":__support_macros_optimization",
17141699
":inv_trigf_utils",
1715-
":math_utils",
17161700
],
17171701
)
17181702

0 commit comments

Comments
 (0)