Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_LIBC_UTILS_FPUTIL_AARCH64_FENVIMPL_H
#define LLVM_LIBC_UTILS_FPUTIL_AARCH64_FENVIMPL_H
#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_AARCH64_FENVIMPL_H
#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_AARCH64_FENVIMPL_H

#include <arm_acle.h>
#include <fenv.h>
#include <stdint.h>

#include "utils/FPUtil/FPBits.h"
#include "src/__support/FPUtil/FPBits.h"

namespace __llvm_libc {
namespace fputil {
Expand Down Expand Up @@ -232,4 +232,4 @@ static inline int setEnv(const fenv_t *envp) {
} // namespace fputil
} // namespace __llvm_libc

#endif // LLVM_LIBC_UTILS_FPUTIL_AARCH64_FENVIMPL_H
#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_AARCH64_FENVIMPL_H
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_LIBC_UTILS_FPUTIL_AARCH64_FMA_H
#define LLVM_LIBC_UTILS_FPUTIL_AARCH64_FMA_H
#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_AARCH64_FMA_H
#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_AARCH64_FMA_H

#include "utils/CPP/TypeTraits.h"

Expand Down Expand Up @@ -35,4 +35,4 @@ cpp::EnableIfType<cpp::IsSame<T, double>::Value, T> fma(T x, T y, T z) {
} // namespace fputil
} // namespace __llvm_libc

#endif // LLVM_LIBC_UTILS_FPUTIL_AARCH64_FMA_H
#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_AARCH64_FMA_H
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_LIBC_UTILS_FPUTIL_GENERIC_FMA_H
#define LLVM_LIBC_UTILS_FPUTIL_GENERIC_FMA_H
#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_GENERIC_FMA_H
#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_GENERIC_FMA_H

#include "utils/CPP/TypeTraits.h"

Expand Down Expand Up @@ -69,4 +69,4 @@ static inline cpp::EnableIfType<cpp::IsSame<T, float>::Value, T> fma(T x, T y,
} // namespace fputil
} // namespace __llvm_libc

#endif // LLVM_LIBC_UTILS_FPUTIL_GENERIC_FMA_H
#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_GENERIC_FMA_H
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_LIBC_UTILS_FPUTIL_X86_64_FENVIMPL_H
#define LLVM_LIBC_UTILS_FPUTIL_X86_64_FENVIMPL_H
#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_X86_64_FENVIMPL_H
#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_X86_64_FENVIMPL_H

#include <fenv.h>
#include <stdint.h>
Expand Down Expand Up @@ -238,7 +238,7 @@ static inline int raiseExcept(int excepts) {
// ensure that the writes by the exception handler are maintained
// when raising the next exception.

auto raiseHelper = [](uint16_t singleExceptFlag) {
auto raiseHelper = [](uint16_t singleExceptFlag) {
internal::X87StateDescriptor state;
internal::getX87StateDescriptor(state);
state.StatusWord |= singleExceptFlag;
Expand Down Expand Up @@ -386,4 +386,4 @@ static inline int setEnv(const fenv_t *envp) {
} // namespace fputil
} // namespace __llvm_libc

#endif // LLVM_LIBC_UTILS_FPUTIL_X86_64_FENVIMPL_H
#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_X86_64_FENVIMPL_H
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_LIBC_UTILS_FPUTIL_X86_64_FMA_H
#define LLVM_LIBC_UTILS_FPUTIL_X86_64_FMA_H
#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_X86_64_FMA_H
#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_X86_64_FMA_H

#include "utils/CPP/TypeTraits.h"

Expand Down Expand Up @@ -37,4 +37,4 @@ static inline cpp::EnableIfType<cpp::IsSame<T, double>::Value, T> fma(T x, T y,
} // namespace fputil
} // namespace __llvm_libc

#endif // LLVM_LIBC_UTILS_FPUTIL_X86_64_FMA_H
#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_X86_64_FMA_H
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_LIBC_SRC_CTYPE_CTYPE_UTILS_H
#define LLVM_LIBC_SRC_CTYPE_CTYPE_UTILS_H
#ifndef LLVM_LIBC_SRC_SUPPORT_CTYPE_UTILS_H
#define LLVM_LIBC_SRC_SUPPORT_CTYPE_UTILS_H

namespace __llvm_libc {
namespace internal {
Expand All @@ -30,7 +30,11 @@ static constexpr int islower(unsigned ch) { return (ch - 'a') < 26; }

static constexpr int isupper(unsigned ch) { return (ch - 'A') < 26; }

static constexpr int isspace(unsigned ch) {
return ch == ' ' || (ch - '\t') < 5;
}

} // namespace internal
} // namespace __llvm_libc

#endif // LLVM_LIBC_SRC_CTYPE_CTYPE_UTILS_H
#endif // LLVM_LIBC_SRC_SUPPORT_CTYPE_UTILS_H
26 changes: 10 additions & 16 deletions libc/src/ctype/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
add_header_library(
ctype_utils
HDRS
ctype_utils.h
)

add_entrypoint_object(
isalnum
SRCS
isalnum.cpp
HDRS
isalnum.h
DEPENDS
.ctype_utils
libc.src.__support.ctype_utils
)

add_entrypoint_object(
Expand All @@ -21,7 +15,7 @@ add_entrypoint_object(
HDRS
isalpha.h
DEPENDS
.ctype_utils
libc.src.__support.ctype_utils
)

add_entrypoint_object(
Expand Down Expand Up @@ -55,7 +49,7 @@ add_entrypoint_object(
HDRS
isdigit.h
DEPENDS
.ctype_utils
libc.src.__support.ctype_utils
)

add_entrypoint_object(
Expand All @@ -65,7 +59,7 @@ add_entrypoint_object(
HDRS
isgraph.h
DEPENDS
.ctype_utils
libc.src.__support.ctype_utils
)

add_entrypoint_object(
Expand All @@ -75,7 +69,7 @@ add_entrypoint_object(
HDRS
islower.h
DEPENDS
.ctype_utils
libc.src.__support.ctype_utils
)

add_entrypoint_object(
Expand All @@ -93,7 +87,7 @@ add_entrypoint_object(
HDRS
ispunct.h
DEPENDS
.ctype_utils
libc.src.__support.ctype_utils
)

add_entrypoint_object(
Expand All @@ -111,7 +105,7 @@ add_entrypoint_object(
HDRS
isupper.h
DEPENDS
.ctype_utils
libc.src.__support.ctype_utils
)

add_entrypoint_object(
Expand All @@ -121,7 +115,7 @@ add_entrypoint_object(
HDRS
isxdigit.h
DEPENDS
.ctype_utils
libc.src.__support.ctype_utils
)

add_entrypoint_object(
Expand All @@ -131,7 +125,7 @@ add_entrypoint_object(
HDRS
tolower.h
DEPENDS
.ctype_utils
libc.src.__support.ctype_utils
)

add_entrypoint_object(
Expand All @@ -149,5 +143,5 @@ add_entrypoint_object(
HDRS
toupper.h
DEPENDS
.ctype_utils
libc.src.__support.ctype_utils
)
2 changes: 1 addition & 1 deletion libc/src/ctype/isalnum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//

#include "src/ctype/isalnum.h"
#include "src/ctype/ctype_utils.h"
#include "src/__support/ctype_utils.h"

#include "src/__support/common.h"

Expand Down
2 changes: 1 addition & 1 deletion libc/src/ctype/isalpha.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "src/ctype/isalpha.h"

#include "src/__support/common.h"
#include "src/ctype/ctype_utils.h"
#include "src/__support/ctype_utils.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/ctype/isdigit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include "src/ctype/isdigit.h"
#include "src/__support/common.h"
#include "src/ctype/ctype_utils.h"
#include "src/__support/ctype_utils.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/ctype/isgraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "src/ctype/isgraph.h"

#include "src/__support/common.h"
#include "src/ctype/ctype_utils.h"
#include "src/__support/ctype_utils.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/ctype/islower.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//

#include "src/ctype/islower.h"
#include "src/ctype/ctype_utils.h"
#include "src/__support/ctype_utils.h"

#include "src/__support/common.h"

Expand Down
2 changes: 1 addition & 1 deletion libc/src/ctype/ispunct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "src/ctype/ispunct.h"

#include "src/__support/common.h"
#include "src/ctype/ctype_utils.h"
#include "src/__support/ctype_utils.h"

namespace __llvm_libc {

Expand Down
6 changes: 2 additions & 4 deletions libc/src/ctype/isspace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,14 @@
//===----------------------------------------------------------------------===//

#include "src/ctype/isspace.h"
#include "src/__support/ctype_utils.h"

#include "src/__support/common.h"

namespace __llvm_libc {

// TODO: Currently restricted to default locale.
// These should be extended using locale information.
LLVM_LIBC_FUNCTION(int, isspace, (int c)) {
const unsigned ch = c;
return ch == ' ' || (ch - '\t') < 5;
}
LLVM_LIBC_FUNCTION(int, isspace, (int c)) { return internal::isspace(c); }

} // namespace __llvm_libc
2 changes: 1 addition & 1 deletion libc/src/ctype/isupper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//

#include "src/ctype/isupper.h"
#include "src/ctype/ctype_utils.h"
#include "src/__support/ctype_utils.h"

#include "src/__support/common.h"

Expand Down
2 changes: 1 addition & 1 deletion libc/src/ctype/isxdigit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//

#include "src/ctype/isxdigit.h"
#include "src/ctype/ctype_utils.h"
#include "src/__support/ctype_utils.h"

#include "src/__support/common.h"

Expand Down
2 changes: 1 addition & 1 deletion libc/src/ctype/tolower.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//

#include "src/ctype/tolower.h"
#include "src/ctype/ctype_utils.h"
#include "src/__support/ctype_utils.h"

#include "src/__support/common.h"

Expand Down
2 changes: 1 addition & 1 deletion libc/src/ctype/toupper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//

#include "src/ctype/toupper.h"
#include "src/ctype/ctype_utils.h"
#include "src/__support/ctype_utils.h"

#include "src/__support/common.h"

Expand Down
22 changes: 11 additions & 11 deletions libc/src/fenv/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ add_entrypoint_object(
fegetround.h
DEPENDS
libc.include.fenv
libc.utils.FPUtil.fputil
libc.src.__support.FPUtil.fputil
COMPILE_OPTIONS
-O2
)
Expand All @@ -19,7 +19,7 @@ add_entrypoint_object(
fesetround.h
DEPENDS
libc.include.fenv
libc.utils.FPUtil.fputil
libc.src.__support.FPUtil.fputil
COMPILE_OPTIONS
-O2
)
Expand All @@ -32,7 +32,7 @@ add_entrypoint_object(
feclearexcept.h
DEPENDS
libc.include.fenv
libc.utils.FPUtil.fputil
libc.src.__support.FPUtil.fputil
COMPILE_OPTIONS
-O2
)
Expand All @@ -45,7 +45,7 @@ add_entrypoint_object(
feraiseexcept.h
DEPENDS
libc.include.fenv
libc.utils.FPUtil.fputil
libc.src.__support.FPUtil.fputil
COMPILE_OPTIONS
-O2
)
Expand All @@ -58,7 +58,7 @@ add_entrypoint_object(
fetestexcept.h
DEPENDS
libc.include.fenv
libc.utils.FPUtil.fputil
libc.src.__support.FPUtil.fputil
COMPILE_OPTIONS
-O2
)
Expand All @@ -71,7 +71,7 @@ add_entrypoint_object(
fegetenv.h
DEPENDS
libc.include.fenv
libc.utils.FPUtil.fputil
libc.src.__support.FPUtil.fputil
COMPILE_OPTIONS
-O2
)
Expand All @@ -84,7 +84,7 @@ add_entrypoint_object(
fesetenv.h
DEPENDS
libc.include.fenv
libc.utils.FPUtil.fputil
libc.src.__support.FPUtil.fputil
COMPILE_OPTIONS
-O2
)
Expand All @@ -97,7 +97,7 @@ add_entrypoint_object(
fegetexceptflag.h
DEPENDS
libc.include.fenv
libc.utils.FPUtil.fputil
libc.src.__support.FPUtil.fputil
COMPILE_OPTIONS
-O2
)
Expand All @@ -110,7 +110,7 @@ add_entrypoint_object(
fesetexceptflag.h
DEPENDS
libc.include.fenv
libc.utils.FPUtil.fputil
libc.src.__support.FPUtil.fputil
COMPILE_OPTIONS
-O2
)
Expand All @@ -123,7 +123,7 @@ add_entrypoint_object(
feholdexcept.h
DEPENDS
libc.include.fenv
libc.utils.FPUtil.fputil
libc.src.__support.FPUtil.fputil
COMPILE_OPTIONS
-O2
)
Expand All @@ -136,7 +136,7 @@ add_entrypoint_object(
feupdateenv.h
DEPENDS
libc.include.fenv
libc.utils.FPUtil.fputil
libc.src.__support.FPUtil.fputil
COMPILE_OPTIONS
-O2
)
2 changes: 1 addition & 1 deletion libc/src/fenv/feclearexcept.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/fenv/feclearexcept.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/common.h"
#include "utils/FPUtil/FEnvUtils.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/fenv/fegetenv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/fenv/fegetenv.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/common.h"
#include "utils/FPUtil/FEnvUtils.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/fenv/fegetexceptflag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/fenv/fegetexceptflag.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/common.h"
#include "utils/FPUtil/FEnvUtils.h"

#include <fenv.h>

Expand Down
2 changes: 1 addition & 1 deletion libc/src/fenv/fegetround.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/fenv/fegetround.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/common.h"
#include "utils/FPUtil/FEnvUtils.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/fenv/feholdexcept.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/fenv/feholdexcept.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/common.h"
#include "utils/FPUtil/FEnvUtils.h"

#include <fenv.h>

Expand Down
2 changes: 1 addition & 1 deletion libc/src/fenv/feraiseexcept.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/fenv/feraiseexcept.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/common.h"
#include "utils/FPUtil/FEnvUtils.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/fenv/fesetenv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/fenv/fesetenv.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/common.h"
#include "utils/FPUtil/FEnvUtils.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/fenv/fesetexceptflag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/fenv/fesetexceptflag.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/common.h"
#include "utils/FPUtil/FEnvUtils.h"

#include <fenv.h>

Expand Down
2 changes: 1 addition & 1 deletion libc/src/fenv/fesetround.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/fenv/fesetround.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/common.h"
#include "utils/FPUtil/FEnvUtils.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/fenv/fetestexcept.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/fenv/fetestexcept.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/common.h"
#include "utils/FPUtil/FEnvUtils.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/fenv/feupdateenv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/fenv/feupdateenv.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/common.h"
#include "utils/FPUtil/FEnvUtils.h"

#include <fenv.h>

Expand Down
4 changes: 2 additions & 2 deletions libc/src/math/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ add_entrypoint_object(
HDRS
fmaf.h
DEPENDS
libc.utils.FPUtil.fputil
libc.src.__support.FPUtil.fputil
COMPILE_OPTIONS
-O2
)
Expand All @@ -59,7 +59,7 @@ add_entrypoint_object(
HDRS
fma.h
DEPENDS
libc.utils.FPUtil.fputil
libc.src.__support.FPUtil.fputil
COMPILE_OPTIONS
-O2
)
Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/fma.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "src/math/fma.h"
#include "src/__support/common.h"

#include "utils/FPUtil/FMA.h"
#include "src/__support/FPUtil/FMA.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/fmaf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "src/math/fmaf.h"
#include "src/__support/common.h"

#include "utils/FPUtil/FMA.h"
#include "src/__support/FPUtil/FMA.h"

namespace __llvm_libc {

Expand Down
150 changes: 75 additions & 75 deletions libc/src/math/generic/CMakeLists.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion libc/src/math/generic/ceil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/ceil.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/ceilf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/ceilf.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/ceill.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/ceill.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/copysign.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/copysign.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/copysignf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/copysignf.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/copysignl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/copysignl.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"

namespace __llvm_libc {

Expand Down
4 changes: 2 additions & 2 deletions libc/src/math/generic/expm1f.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
//===----------------------------------------------------------------------===//

#include "src/math/expm1f.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/FPUtil/PolyEval.h"
#include "src/__support/common.h"
#include "src/math/expf.h"
#include "utils/FPUtil/BasicOperations.h"
#include "utils/FPUtil/PolyEval.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/fabs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/fabs.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/BasicOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/fabsf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/fabsf.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/BasicOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/fabsl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/fabsl.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/BasicOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/fdim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/fdim.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/BasicOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/fdimf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/fdimf.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/BasicOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/fdiml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/fdiml.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/BasicOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/floor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/floor.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/floorf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/floorf.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/floorl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/floorl.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/fmax.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/fmax.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/BasicOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/fmaxf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/fmaxf.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/BasicOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/fmaxl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/fmaxl.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/BasicOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/fmin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/fmin.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/BasicOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/fminf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/fminf.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/BasicOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/fminl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/fminl.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/BasicOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/frexp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/frexp.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/frexpf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/frexpf.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/frexpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/frexpl.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/hypot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/hypot.h"
#include "src/__support/FPUtil/Hypot.h"
#include "src/__support/common.h"
#include "utils/FPUtil/Hypot.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/hypotf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
//
//===----------------------------------------------------------------------===//
#include "src/math/hypotf.h"
#include "src/__support/FPUtil/Hypot.h"
#include "src/__support/common.h"
#include "utils/FPUtil/Hypot.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/ilogb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/ilogb.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/ilogbf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/ilogbf.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/ilogbl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/ilogbl.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/ldexp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/ldexp.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/ldexpf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/ldexpf.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/ldexpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/ldexpl.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/llrint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/llrint.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/llrintf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/llrintf.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/llrintl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/llrintl.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/llround.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/llround.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/llroundf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/llroundf.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/llroundl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/llroundl.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/logb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/logb.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/logbf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/logbf.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/logbl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/logbl.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/lrint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/lrint.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/lrintf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/lrintf.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/lrintl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/lrintl.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/lround.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/lround.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/lroundf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/lroundf.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/lroundl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/lroundl.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/modf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/modf.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/modff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/modff.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/modfl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/modfl.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/nearbyint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/nearbyint.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/nearbyintf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/nearbyintf.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/nearbyintl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/nearbyintl.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/nextafter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/nextafter.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/nextafterf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/nextafterf.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/nextafterl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/nextafterl.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/remainder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/remainder.h"
#include "src/__support/FPUtil/DivisionAndRemainderOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/DivisionAndRemainderOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/remainderf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/remainderf.h"
#include "src/__support/FPUtil/DivisionAndRemainderOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/DivisionAndRemainderOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/remainderl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/remainderl.h"
#include "src/__support/FPUtil/DivisionAndRemainderOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/DivisionAndRemainderOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/remquo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/remquo.h"
#include "src/__support/FPUtil/DivisionAndRemainderOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/DivisionAndRemainderOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/remquof.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/remquof.h"
#include "src/__support/FPUtil/DivisionAndRemainderOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/DivisionAndRemainderOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/remquol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/remquol.h"
#include "src/__support/FPUtil/DivisionAndRemainderOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/DivisionAndRemainderOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/rint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/rint.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/rintf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/rintf.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/rintl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/rintl.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/round.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/round.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/roundf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/roundf.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/roundl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/roundl.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/sqrt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/sqrt.h"
#include "src/__support/FPUtil/Sqrt.h"
#include "src/__support/common.h"
#include "utils/FPUtil/Sqrt.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/sqrtf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/sqrtf.h"
#include "src/__support/FPUtil/Sqrt.h"
#include "src/__support/common.h"
#include "utils/FPUtil/Sqrt.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/sqrtl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/sqrtl.h"
#include "src/__support/FPUtil/Sqrt.h"
#include "src/__support/common.h"
#include "utils/FPUtil/Sqrt.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/trunc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/trunc.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/truncf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/truncf.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"

namespace __llvm_libc {

Expand Down
2 changes: 1 addition & 1 deletion libc/src/math/generic/truncl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//

#include "src/math/truncl.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"

namespace __llvm_libc {

Expand Down
14 changes: 7 additions & 7 deletions libc/test/src/fenv/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ add_libc_unittest(
libc.src.fenv.feclearexcept
libc.src.fenv.feraiseexcept
libc.src.fenv.fetestexcept
libc.utils.FPUtil.fputil
libc.src.__support.FPUtil.fputil
)

add_libc_unittest(
Expand All @@ -33,7 +33,7 @@ add_libc_unittest(
DEPENDS
libc.src.fenv.fegetenv
libc.src.fenv.fesetenv
libc.utils.FPUtil.fputil
libc.src.__support.FPUtil.fputil
)

add_libc_unittest(
Expand All @@ -45,7 +45,7 @@ add_libc_unittest(
DEPENDS
libc.src.fenv.fegetexceptflag
libc.src.fenv.fesetexceptflag
libc.utils.FPUtil.fputil
libc.src.__support.FPUtil.fputil
)

add_libc_unittest(
Expand All @@ -57,7 +57,7 @@ add_libc_unittest(
DEPENDS
libc.include.signal
libc.src.fenv.feupdateenv
libc.utils.FPUtil.fputil
libc.src.__support.FPUtil.fputil
)

add_libc_unittest(
Expand All @@ -68,7 +68,7 @@ add_libc_unittest(
feclearexcept_test.cpp
DEPENDS
libc.src.fenv.feclearexcept
libc.utils.FPUtil.fputil
libc.src.__support.FPUtil.fputil
)

if (NOT (LLVM_USE_SANITIZER OR (${LIBC_TARGET_OS} STREQUAL "windows")))
Expand All @@ -87,7 +87,7 @@ if (NOT (LLVM_USE_SANITIZER OR (${LIBC_TARGET_OS} STREQUAL "windows")))
libc.src.fenv.feclearexcept
libc.src.fenv.feraiseexcept
libc.src.fenv.fetestexcept
libc.utils.FPUtil.fputil
libc.src.__support.FPUtil.fputil
)

add_fp_unittest(
Expand All @@ -99,6 +99,6 @@ if (NOT (LLVM_USE_SANITIZER OR (${LIBC_TARGET_OS} STREQUAL "windows")))
DEPENDS
libc.include.fenv
libc.src.fenv.feholdexcept
libc.utils.FPUtil.fputil
libc.src.__support.FPUtil.fputil
)
endif()
4 changes: 2 additions & 2 deletions libc/test/src/fenv/enabled_exceptions_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
#include "src/fenv/feraiseexcept.h"
#include "src/fenv/fetestexcept.h"

#include "utils/FPUtil/FEnvUtils.h"
#include "utils/FPUtil/FPExceptMatcher.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FPExceptMatcher.h"
#include "utils/UnitTest/Test.h"

#include <fenv.h>
Expand Down
2 changes: 1 addition & 1 deletion libc/test/src/fenv/exception_flags_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "src/fenv/fegetexceptflag.h"
#include "src/fenv/fesetexceptflag.h"

#include "utils/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "utils/UnitTest/Test.h"

#include <fenv.h>
Expand Down
2 changes: 1 addition & 1 deletion libc/test/src/fenv/exception_status_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "src/fenv/feraiseexcept.h"
#include "src/fenv/fetestexcept.h"

#include "utils/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "utils/UnitTest/Test.h"

#include <fenv.h>
Expand Down
2 changes: 1 addition & 1 deletion libc/test/src/fenv/feclearexcept_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include "src/fenv/feclearexcept.h"

#include "utils/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "utils/UnitTest/Test.h"

#include <fenv.h>
Expand Down
4 changes: 2 additions & 2 deletions libc/test/src/fenv/feholdexcept_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

#include "src/fenv/feholdexcept.h"

#include "utils/FPUtil/FEnvUtils.h"
#include "utils/FPUtil/FPExceptMatcher.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FPExceptMatcher.h"
#include "utils/UnitTest/Test.h"

#include <fenv.h>
Expand Down
2 changes: 1 addition & 1 deletion libc/test/src/fenv/feupdateenv_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include "src/fenv/feupdateenv.h"

#include "utils/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "utils/UnitTest/Test.h"

#include <fenv.h>
Expand Down
2 changes: 1 addition & 1 deletion libc/test/src/fenv/getenv_and_setenv_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "src/fenv/fegetenv.h"
#include "src/fenv/fesetenv.h"

#include "utils/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "utils/UnitTest/Test.h"

#include <fenv.h>
Expand Down
158 changes: 79 additions & 79 deletions libc/test/src/math/CMakeLists.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion libc/test/src/math/CeilTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

#include "utils/FPUtil/TestHelpers.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "utils/UnitTest/Test.h"

Expand Down
2 changes: 1 addition & 1 deletion libc/test/src/math/CopySignTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

#include "utils/FPUtil/TestHelpers.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "utils/UnitTest/Test.h"

Expand Down
2 changes: 1 addition & 1 deletion libc/test/src/math/FAbsTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

#include "utils/FPUtil/TestHelpers.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "utils/UnitTest/Test.h"

Expand Down
6 changes: 3 additions & 3 deletions libc/test/src/math/FDimTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
//
//===---------------------------------------------------------------------===//

#include "utils/FPUtil/BasicOperations.h"
#include "utils/FPUtil/FPBits.h"
#include "utils/FPUtil/TestHelpers.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "utils/UnitTest/Test.h"
#include <math.h>

Expand Down
2 changes: 1 addition & 1 deletion libc/test/src/math/FMaxTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

#include "utils/FPUtil/TestHelpers.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "utils/UnitTest/Test.h"

Expand Down
2 changes: 1 addition & 1 deletion libc/test/src/math/FMinTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

#include "utils/FPUtil/TestHelpers.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "utils/UnitTest/Test.h"

Expand Down
2 changes: 1 addition & 1 deletion libc/test/src/math/FloorTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

#include "utils/FPUtil/TestHelpers.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "utils/UnitTest/Test.h"

Expand Down
4 changes: 2 additions & 2 deletions libc/test/src/math/FmaTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#ifndef LLVM_LIBC_TEST_SRC_MATH_FMATEST_H
#define LLVM_LIBC_TEST_SRC_MATH_FMATEST_H

#include "utils/FPUtil/FPBits.h"
#include "utils/FPUtil/TestHelpers.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "utils/UnitTest/Test.h"
#include "utils/testutils/RandUtils.h"
Expand Down
4 changes: 2 additions & 2 deletions libc/test/src/math/FrexpTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
//
//===----------------------------------------------------------------------===//

#include "utils/FPUtil/BasicOperations.h"
#include "utils/FPUtil/TestHelpers.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "utils/UnitTest/Test.h"

Expand Down
6 changes: 3 additions & 3 deletions libc/test/src/math/HypotTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
#ifndef LLVM_LIBC_TEST_SRC_MATH_HYPOTTEST_H
#define LLVM_LIBC_TEST_SRC_MATH_HYPOTTEST_H

#include "utils/FPUtil/FPBits.h"
#include "utils/FPUtil/Hypot.h"
#include "utils/FPUtil/TestHelpers.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/Hypot.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "utils/UnitTest/Test.h"

Expand Down
4 changes: 2 additions & 2 deletions libc/test/src/math/ILogbTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#ifndef LLVM_LIBC_TEST_SRC_MATH_ILOGBTEST_H
#define LLVM_LIBC_TEST_SRC_MATH_ILOGBTEST_H

#include "utils/FPUtil/FPBits.h"
#include "utils/FPUtil/ManipulationFunctions.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "utils/UnitTest/Test.h"
#include <math.h>

Expand Down
6 changes: 3 additions & 3 deletions libc/test/src/math/LdExpTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
#ifndef LLVM_LIBC_TEST_SRC_MATH_LDEXPTEST_H
#define LLVM_LIBC_TEST_SRC_MATH_LDEXPTEST_H

#include "utils/FPUtil/FPBits.h"
#include "utils/FPUtil/NormalFloat.h"
#include "utils/FPUtil/TestHelpers.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/NormalFloat.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "utils/UnitTest/Test.h"

#include <limits.h>
Expand Down
4 changes: 2 additions & 2 deletions libc/test/src/math/LogbTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
//
//===----------------------------------------------------------------------===//

#include "utils/FPUtil/ManipulationFunctions.h"
#include "utils/FPUtil/TestHelpers.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "utils/UnitTest/Test.h"

Expand Down
6 changes: 3 additions & 3 deletions libc/test/src/math/ModfTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
//
//===----------------------------------------------------------------------===//

#include "utils/FPUtil/BasicOperations.h"
#include "utils/FPUtil/NearestIntegerOperations.h"
#include "utils/FPUtil/TestHelpers.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/FPUtil/NearestIntegerOperations.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "utils/UnitTest/Test.h"

Expand Down
6 changes: 3 additions & 3 deletions libc/test/src/math/NextAfterTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
#ifndef LLVM_LIBC_TEST_SRC_MATH_NEXTAFTERTEST_H
#define LLVM_LIBC_TEST_SRC_MATH_NEXTAFTERTEST_H

#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "utils/CPP/TypeTraits.h"
#include "utils/FPUtil/BasicOperations.h"
#include "utils/FPUtil/FPBits.h"
#include "utils/FPUtil/TestHelpers.h"
#include "utils/UnitTest/Test.h"
#include <math.h>

Expand Down
6 changes: 3 additions & 3 deletions libc/test/src/math/RIntTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
#ifndef LLVM_LIBC_TEST_SRC_MATH_RINTTEST_H
#define LLVM_LIBC_TEST_SRC_MATH_RINTTEST_H

#include "utils/FPUtil/FEnvUtils.h"
#include "utils/FPUtil/FPBits.h"
#include "utils/FPUtil/TestHelpers.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "utils/UnitTest/Test.h"

Expand Down
6 changes: 3 additions & 3 deletions libc/test/src/math/RemQuoTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
#ifndef LLVM_LIBC_TEST_SRC_MATH_REMQUOTEST_H
#define LLVM_LIBC_TEST_SRC_MATH_REMQUOTEST_H

#include "utils/FPUtil/BasicOperations.h"
#include "utils/FPUtil/FPBits.h"
#include "utils/FPUtil/TestHelpers.h"
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "utils/UnitTest/Test.h"
#include <math.h>
Expand Down
2 changes: 1 addition & 1 deletion libc/test/src/math/RoundTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

#include "utils/FPUtil/TestHelpers.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "utils/UnitTest/Test.h"

Expand Down
4 changes: 2 additions & 2 deletions libc/test/src/math/RoundToIntegerTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#ifndef LLVM_LIBC_TEST_SRC_MATH_ROUNDTOINTEGERTEST_H
#define LLVM_LIBC_TEST_SRC_MATH_ROUNDTOINTEGERTEST_H

#include "utils/FPUtil/FPBits.h"
#include "src/__support/FPUtil/FPBits.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "utils/UnitTest/Test.h"

Expand All @@ -18,7 +18,7 @@
#include <errno.h>
#endif
#if math_errhandling & MATH_ERREXCEPT
#include "utils/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#endif

namespace mpfr = __llvm_libc::testing::mpfr;
Expand Down
2 changes: 1 addition & 1 deletion libc/test/src/math/SqrtTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

#include "utils/FPUtil/TestHelpers.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "utils/UnitTest/Test.h"

Expand Down
2 changes: 1 addition & 1 deletion libc/test/src/math/TruncTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

#include "utils/FPUtil/TestHelpers.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "utils/UnitTest/Test.h"

Expand Down
2 changes: 1 addition & 1 deletion libc/test/src/math/cos_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
//
//===----------------------------------------------------------------------===//

#include "src/__support/FPUtil/TestHelpers.h"
#include "src/math/cos.h"
#include "utils/FPUtil/TestHelpers.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "utils/UnitTest/Test.h"

Expand Down
4 changes: 2 additions & 2 deletions libc/test/src/math/cosf_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
//
//===----------------------------------------------------------------------===//

#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "src/math/cosf.h"
#include "test/src/math/sdcomp26094.h"
#include "utils/CPP/Array.h"
#include "utils/FPUtil/FPBits.h"
#include "utils/FPUtil/TestHelpers.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "utils/UnitTest/Test.h"
#include <math.h>
Expand Down
2 changes: 1 addition & 1 deletion libc/test/src/math/differential_testing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function(add_diff_binary target_name)

add_dependencies(
${fq_target_name}
libc.utils.FPUtil.fputil
libc.src.__support.FPUtil.fputil
${fq_deps_list}
)
endfunction()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

#include "utils/FPUtil/FPBits.h"
#include "src/__support/FPUtil/FPBits.h"
#include "utils/testutils/StreamWrapper.h"
#include "utils/testutils/Timer.h"

Expand Down
8 changes: 4 additions & 4 deletions libc/test/src/math/exhaustive/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ add_fp_unittest(
DEPENDS
libc.include.math
libc.src.math.sqrtf
libc.utils.FPUtil.fputil
libc.src.__support.FPUtil.fputil
)

add_fp_unittest(
Expand All @@ -23,7 +23,7 @@ add_fp_unittest(
DEPENDS
libc.include.math
libc.src.math.sinf
libc.utils.FPUtil.fputil
libc.src.__support.FPUtil.fputil
)

add_fp_unittest(
Expand All @@ -36,7 +36,7 @@ add_fp_unittest(
DEPENDS
libc.include.math
libc.src.math.cosf
libc.utils.FPUtil.fputil
libc.src.__support.FPUtil.fputil
)

add_fp_unittest(
Expand All @@ -49,5 +49,5 @@ add_fp_unittest(
DEPENDS
libc.include.math
libc.src.math.expm1f
libc.utils.FPUtil.fputil
libc.src.__support.FPUtil.fputil
)
4 changes: 2 additions & 2 deletions libc/test/src/math/exhaustive/cosf_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
//
//===----------------------------------------------------------------------===//

#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "src/math/cosf.h"
#include "utils/FPUtil/FPBits.h"
#include "utils/FPUtil/TestHelpers.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include <math.h>

Expand Down
4 changes: 2 additions & 2 deletions libc/test/src/math/exhaustive/expm1f_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
//
//===----------------------------------------------------------------------===//

#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "src/math/expm1f.h"
#include "utils/FPUtil/FPBits.h"
#include "utils/FPUtil/TestHelpers.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include <math.h>

Expand Down
4 changes: 2 additions & 2 deletions libc/test/src/math/exhaustive/sinf_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
//
//===----------------------------------------------------------------------===//

#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "src/math/sinf.h"
#include "utils/FPUtil/FPBits.h"
#include "utils/FPUtil/TestHelpers.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include <math.h>

Expand Down
4 changes: 2 additions & 2 deletions libc/test/src/math/exhaustive/sqrtf_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
//
//===---------------------------------------------------------------------===//

#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "src/math/sqrtf.h"
#include "utils/FPUtil/FPBits.h"
#include "utils/FPUtil/TestHelpers.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include <math.h>

Expand Down
4 changes: 2 additions & 2 deletions libc/test/src/math/exp2f_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
//
//===----------------------------------------------------------------------===//

#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "src/math/exp2f.h"
#include "utils/FPUtil/FPBits.h"
#include "utils/FPUtil/TestHelpers.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "utils/UnitTest/Test.h"
#include <math.h>
Expand Down
4 changes: 2 additions & 2 deletions libc/test/src/math/expf_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
//
//===----------------------------------------------------------------------===//

#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "src/math/expf.h"
#include "utils/FPUtil/FPBits.h"
#include "utils/FPUtil/TestHelpers.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "utils/UnitTest/Test.h"
#include <math.h>
Expand Down
4 changes: 2 additions & 2 deletions libc/test/src/math/expm1f_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
//
//===----------------------------------------------------------------------===//

#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "src/math/expm1f.h"
#include "utils/FPUtil/FPBits.h"
#include "utils/FPUtil/TestHelpers.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "utils/UnitTest/Test.h"
#include <math.h>
Expand Down
4 changes: 2 additions & 2 deletions libc/test/src/math/fdim_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

#include "FDimTest.h"

#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "src/math/fdim.h"
#include "utils/FPUtil/FPBits.h"
#include "utils/FPUtil/TestHelpers.h"
#include "utils/UnitTest/Test.h"
#include <math.h>

Expand Down
4 changes: 2 additions & 2 deletions libc/test/src/math/fdimf_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

#include "FDimTest.h"

#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "src/math/fdimf.h"
#include "utils/FPUtil/FPBits.h"
#include "utils/FPUtil/TestHelpers.h"
#include "utils/UnitTest/Test.h"
#include <math.h>

Expand Down
4 changes: 2 additions & 2 deletions libc/test/src/math/fdiml_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

#include "FDimTest.h"

#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "src/math/fdiml.h"
#include "utils/FPUtil/FPBits.h"
#include "utils/FPUtil/TestHelpers.h"
#include "utils/UnitTest/Test.h"
#include <math.h>

Expand Down
6 changes: 3 additions & 3 deletions libc/test/src/math/generic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ add_fp_unittest(
DEPENDS
libc.include.math
libc.src.math.generic.ceil
libc.utils.FPUtil.fputil
libc.src.__support.FPUtil.fputil
)

add_fp_unittest(
Expand All @@ -21,7 +21,7 @@ add_fp_unittest(
DEPENDS
libc.include.math
libc.src.math.generic.ceilf
libc.utils.FPUtil.fputil
libc.src.__support.FPUtil.fputil
)

add_fp_unittest(
Expand All @@ -34,6 +34,6 @@ add_fp_unittest(
DEPENDS
libc.include.math
libc.src.math.generic.ceill
libc.utils.FPUtil.fputil
libc.src.__support.FPUtil.fputil
)

6 changes: 3 additions & 3 deletions libc/test/src/math/ilogb_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@

#include "ILogbTest.h"

#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "src/math/ilogb.h"
#include "utils/FPUtil/FPBits.h"
#include "utils/FPUtil/ManipulationFunctions.h"
#include "utils/FPUtil/TestHelpers.h"
#include "utils/UnitTest/Test.h"
#include <math.h>

Expand Down
6 changes: 3 additions & 3 deletions libc/test/src/math/ilogbf_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@

#include "ILogbTest.h"

#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "src/math/ilogbf.h"
#include "utils/FPUtil/FPBits.h"
#include "utils/FPUtil/ManipulationFunctions.h"
#include "utils/FPUtil/TestHelpers.h"
#include "utils/UnitTest/Test.h"
#include <math.h>

Expand Down
6 changes: 3 additions & 3 deletions libc/test/src/math/ilogbl_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@

#include "ILogbTest.h"

#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/ManipulationFunctions.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "src/math/ilogbl.h"
#include "utils/FPUtil/FPBits.h"
#include "utils/FPUtil/ManipulationFunctions.h"
#include "utils/FPUtil/TestHelpers.h"
#include "utils/UnitTest/Test.h"
#include <math.h>

Expand Down
4 changes: 2 additions & 2 deletions libc/test/src/math/sin_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
//
//===----------------------------------------------------------------------===//

#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "src/math/sin.h"
#include "utils/FPUtil/FPBits.h"
#include "utils/FPUtil/TestHelpers.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "utils/UnitTest/Test.h"

Expand Down
4 changes: 2 additions & 2 deletions libc/test/src/math/sincosf_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
//
//===----------------------------------------------------------------------===//

#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "src/math/sincosf.h"
#include "test/src/math/sdcomp26094.h"
#include "utils/CPP/Array.h"
#include "utils/FPUtil/FPBits.h"
#include "utils/FPUtil/TestHelpers.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "utils/UnitTest/Test.h"
#include <math.h>
Expand Down
4 changes: 2 additions & 2 deletions libc/test/src/math/sinf_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
//
//===----------------------------------------------------------------------===//

#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "src/math/sinf.h"
#include "test/src/math/sdcomp26094.h"
#include "utils/CPP/Array.h"
#include "utils/FPUtil/FPBits.h"
#include "utils/FPUtil/TestHelpers.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "utils/UnitTest/Test.h"
#include <math.h>
Expand Down
2 changes: 1 addition & 1 deletion libc/test/src/math/tan_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
//
//===----------------------------------------------------------------------===//

#include "src/__support/FPUtil/TestHelpers.h"
#include "src/math/tan.h"
#include "utils/FPUtil/TestHelpers.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "utils/UnitTest/Test.h"

Expand Down
2 changes: 1 addition & 1 deletion libc/test/utils/FPUtil/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ if((${LIBC_TARGET_OS} STREQUAL "linux") AND (${LIBC_TARGET_ARCHITECTURE_IS_X86})
x86_long_double_test.cpp
DEPENDS
libc.include.math
libc.utils.FPUtil.fputil
libc.src.__support.FPUtil.fputil
)
endif()
2 changes: 1 addition & 1 deletion libc/test/utils/FPUtil/x86_long_double_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//

#include "utils/FPUtil/FPBits.h"
#include "src/__support/FPUtil/FPBits.h"
#include "utils/UnitTest/Test.h"

#include <math.h>
Expand Down
1 change: 0 additions & 1 deletion libc/utils/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
add_subdirectory(CPP)
add_subdirectory(FPUtil)
add_subdirectory(MPFRWrapper)
add_subdirectory(testutils)
add_subdirectory(UnitTest)
Expand Down
2 changes: 1 addition & 1 deletion libc/utils/MPFRWrapper/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ if(LIBC_TESTS_CAN_USE_MPFR)
MPFRUtils.cpp
MPFRUtils.h
)
add_dependencies(libcMPFRWrapper libc.utils.CPP.standalone_cpp libc.utils.FPUtil.fputil LibcUnitTest)
add_dependencies(libcMPFRWrapper libc.utils.CPP.standalone_cpp libc.src.__support.FPUtil.fputil LibcUnitTest)
if(EXISTS ${LLVM_LIBC_MPFR_INSTALL_PATH})
target_include_directories(libcMPFRWrapper PUBLIC ${LLVM_LIBC_MPFR_INSTALL_PATH}/include)
target_link_directories(libcMPFRWrapper PUBLIC ${LLVM_LIBC_MPFR_INSTALL_PATH}/lib)
Expand Down
4 changes: 2 additions & 2 deletions libc/utils/MPFRWrapper/MPFRUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

#include "MPFRUtils.h"

#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/TestHelpers.h"
#include "utils/CPP/StringView.h"
#include "utils/FPUtil/FPBits.h"
#include "utils/FPUtil/TestHelpers.h"

#include <cmath>
#include <memory>
Expand Down