Skip to content

Commit

Permalink
[libc] Clean up unused math_utils.(h|cpp). (#88036)
Browse files Browse the repository at this point in the history
  • Loading branch information
lntue authored Apr 8, 2024
1 parent 8671429 commit 1e6ce5e
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 150 deletions.
1 change: 0 additions & 1 deletion libc/src/__support/FPUtil/generic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,4 @@ add_header_library(
libc.src.__support.FPUtil.fp_bits
libc.src.__support.FPUtil.rounding_mode
libc.src.__support.macros.optimization
libc.src.math.generic.math_utils
)
1 change: 0 additions & 1 deletion libc/src/__support/FPUtil/generic/FMod.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include "src/__support/FPUtil/FEnvImpl.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include "src/math/generic/math_utils.h"

namespace LIBC_NAMESPACE {
namespace fputil {
Expand Down
14 changes: 0 additions & 14 deletions libc/src/math/generic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,18 +95,6 @@ add_entrypoint_object(
libc.src.__support.FPUtil.nearest_integer_operations
)

add_object_library(
math_utils
SRCS
math_utils.cpp
HDRS
math_utils.h
DEPENDS
libc.hdr.math_macros
libc.include.errno
libc.src.errno.errno
)

add_header_library(
range_reduction
HDRS
Expand Down Expand Up @@ -749,8 +737,6 @@ add_object_library(
exp_utils.h
SRCS
exp_utils.cpp
DEPENDS
.math_utils
)

add_entrypoint_object(
Expand Down
1 change: 0 additions & 1 deletion libc/src/math/generic/exp_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
//===----------------------------------------------------------------------===//

#include "exp_utils.h"
#include "math_utils.h"

namespace LIBC_NAMESPACE {

Expand Down
1 change: 0 additions & 1 deletion libc/src/math/generic/explogxf.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#define LLVM_LIBC_SRC_MATH_GENERIC_EXPLOGXF_H

#include "common_constants.h"
#include "math_utils.h"
#include "src/__support/CPP/bit.h"
#include "src/__support/CPP/optional.h"
#include "src/__support/FPUtil/FEnvImpl.h"
Expand Down
21 changes: 0 additions & 21 deletions libc/src/math/generic/math_utils.cpp

This file was deleted.

95 changes: 0 additions & 95 deletions libc/src/math/generic/math_utils.h

This file was deleted.

16 changes: 0 additions & 16 deletions utils/bazel/llvm-project-overlay/libc/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,6 @@ libc_support_library(
":__support_cpp_type_traits",
":__support_fputil_fenv_impl",
":__support_fputil_fp_bits",
":math_utils",
],
)

Expand Down Expand Up @@ -1243,19 +1242,6 @@ libc_function(

################################ math targets ################################

libc_support_library(
name = "math_utils",
srcs = ["src/math/generic/math_utils.cpp"],
hdrs = ["src/math/generic/math_utils.h"],
deps = [
"__support_cpp_bit",
"__support_cpp_type_traits",
":__support_common",
":errno",
":hdr_math_macros",
],
)

libc_support_library(
name = "common_constants",
srcs = ["src/math/generic/common_constants.cpp"],
Expand Down Expand Up @@ -1304,7 +1290,6 @@ libc_support_library(
":__support_fputil_nearest_integer",
":__support_fputil_polyeval",
":common_constants",
":math_utils",
],
)

Expand Down Expand Up @@ -1712,7 +1697,6 @@ libc_math_function(
":__support_fputil_rounding_mode",
":__support_macros_optimization",
":inv_trigf_utils",
":math_utils",
],
)

Expand Down

0 comments on commit 1e6ce5e

Please sign in to comment.