diff --git a/libc/fuzzing/math/CMakeLists.txt b/libc/fuzzing/math/CMakeLists.txt --- a/libc/fuzzing/math/CMakeLists.txt +++ b/libc/fuzzing/math/CMakeLists.txt @@ -45,7 +45,7 @@ libc.src.math.trunc libc.src.math.truncf libc.src.math.truncl - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil libc.utils.CPP.standalone_cpp ) diff --git a/libc/fuzzing/math/Compare.h b/libc/fuzzing/math/Compare.h --- a/libc/fuzzing/math/Compare.h +++ b/libc/fuzzing/math/Compare.h @@ -9,8 +9,8 @@ #ifndef LLVM_LIBC_FUZZING_MATH_COMPARE_H #define LLVM_LIBC_FUZZING_MATH_COMPARE_H +#include "src/__support/FPUtil/FPBits.h" #include "utils/CPP/TypeTraits.h" -#include "utils/FPUtil/FPBits.h" template __llvm_libc::cpp::EnableIfType<__llvm_libc::cpp::IsFloatingPointType::Value, diff --git a/libc/fuzzing/math/RemQuoDiff.h b/libc/fuzzing/math/RemQuoDiff.h --- a/libc/fuzzing/math/RemQuoDiff.h +++ b/libc/fuzzing/math/RemQuoDiff.h @@ -6,7 +6,7 @@ // //===----------------------------------------------------------------------===// -#include "utils/FPUtil/FPBits.h" +#include "src/__support/FPUtil/FPBits.h" #include #include diff --git a/libc/fuzzing/math/SingleInputSingleOutputDiff.h b/libc/fuzzing/math/SingleInputSingleOutputDiff.h --- a/libc/fuzzing/math/SingleInputSingleOutputDiff.h +++ b/libc/fuzzing/math/SingleInputSingleOutputDiff.h @@ -10,7 +10,7 @@ #define LLVM_LIBC_FUZZING_MATH_SINGLE_INPUT_SINGLE_OUTPUT_DIFF_H #include "fuzzing/math/Compare.h" -#include "utils/FPUtil/FPBits.h" +#include "src/__support/FPUtil/FPBits.h" #include #include diff --git a/libc/fuzzing/math/TwoInputSingleOutputDiff.h b/libc/fuzzing/math/TwoInputSingleOutputDiff.h --- a/libc/fuzzing/math/TwoInputSingleOutputDiff.h +++ b/libc/fuzzing/math/TwoInputSingleOutputDiff.h @@ -10,7 +10,7 @@ #define LLVM_LIBC_FUZZING_MATH_TWO_INPUT_SINGLE_OUTPUT_DIFF_H #include "fuzzing/math/Compare.h" -#include "utils/FPUtil/FPBits.h" +#include "src/__support/FPUtil/FPBits.h" #include #include diff --git a/libc/src/__support/CMakeLists.txt b/libc/src/__support/CMakeLists.txt --- a/libc/src/__support/CMakeLists.txt +++ b/libc/src/__support/CMakeLists.txt @@ -6,9 +6,16 @@ sanitizer.h ) +add_header_library( + ctype_utils + HDRS + ctype_utils.h +) + add_header_library( integer_operations HDRS integer_operations.h ) +add_subdirectory(FPUtil) diff --git a/libc/utils/FPUtil/BasicOperations.h b/libc/src/__support/FPUtil/BasicOperations.h rename from libc/utils/FPUtil/BasicOperations.h rename to libc/src/__support/FPUtil/BasicOperations.h --- a/libc/utils/FPUtil/BasicOperations.h +++ b/libc/src/__support/FPUtil/BasicOperations.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_UTILS_FPUTIL_BASIC_OPERATIONS_H -#define LLVM_LIBC_UTILS_FPUTIL_BASIC_OPERATIONS_H +#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_BASIC_OPERATIONS_H +#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_BASIC_OPERATIONS_H #include "FPBits.h" @@ -81,4 +81,4 @@ } // namespace fputil } // namespace __llvm_libc -#endif // LLVM_LIBC_UTILS_FPUTIL_BASIC_OPERATIONS_H +#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_BASIC_OPERATIONS_H diff --git a/libc/utils/FPUtil/CMakeLists.txt b/libc/src/__support/FPUtil/CMakeLists.txt rename from libc/utils/FPUtil/CMakeLists.txt rename to libc/src/__support/FPUtil/CMakeLists.txt --- a/libc/utils/FPUtil/CMakeLists.txt +++ b/libc/src/__support/FPUtil/CMakeLists.txt @@ -47,5 +47,5 @@ LibcFPTestHelpers LibcUnitTest libc.utils.CPP.standalone_cpp - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) diff --git a/libc/utils/FPUtil/DivisionAndRemainderOperations.h b/libc/src/__support/FPUtil/DivisionAndRemainderOperations.h rename from libc/utils/FPUtil/DivisionAndRemainderOperations.h rename to libc/src/__support/FPUtil/DivisionAndRemainderOperations.h --- a/libc/utils/FPUtil/DivisionAndRemainderOperations.h +++ b/libc/src/__support/FPUtil/DivisionAndRemainderOperations.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_UTILS_FPUTIL_DIVISION_AND_REMAINDER_OPERATIONS_H -#define LLVM_LIBC_UTILS_FPUTIL_DIVISION_AND_REMAINDER_OPERATIONS_H +#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_DIVISION_AND_REMAINDER_OPERATIONS_H +#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_DIVISION_AND_REMAINDER_OPERATIONS_H #include "FPBits.h" #include "ManipulationFunctions.h" @@ -116,4 +116,4 @@ } // namespace fputil } // namespace __llvm_libc -#endif // LLVM_LIBC_UTILS_FPUTIL_DIVISION_AND_REMAINDER_OPERATIONS_H +#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_DIVISION_AND_REMAINDER_OPERATIONS_H diff --git a/libc/utils/FPUtil/DummyFEnvImpl.h b/libc/src/__support/FPUtil/DummyFEnvImpl.h rename from libc/utils/FPUtil/DummyFEnvImpl.h rename to libc/src/__support/FPUtil/DummyFEnvImpl.h --- a/libc/utils/FPUtil/DummyFEnvImpl.h +++ b/libc/src/__support/FPUtil/DummyFEnvImpl.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_UTILS_FPUTIL_DUMMY_FENVIMPL_H -#define LLVM_LIBC_UTILS_FPUTIL_DUMMY_FENVIMPL_H +#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_DUMMY_FENVIMPL_H +#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_DUMMY_FENVIMPL_H #include #include @@ -36,4 +36,4 @@ } // namespace fputil } // namespace __llvm_libc -#endif // LLVM_LIBC_UTILS_FPUTIL_DUMMY_FENVIMPL_H +#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_DUMMY_FENVIMPL_H diff --git a/libc/utils/FPUtil/FEnvUtils.h b/libc/src/__support/FPUtil/FEnvUtils.h rename from libc/utils/FPUtil/FEnvUtils.h rename to libc/src/__support/FPUtil/FEnvUtils.h --- a/libc/utils/FPUtil/FEnvUtils.h +++ b/libc/src/__support/FPUtil/FEnvUtils.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_UTILS_FPUTIL_FENVUTILS_H -#define LLVM_LIBC_UTILS_FPUTIL_FENVUTILS_H +#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_FENVUTILS_H +#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_FENVUTILS_H #ifdef __x86_64__ #include "x86_64/FEnvImpl.h" @@ -17,4 +17,4 @@ #include "DummyFEnvImpl.h" #endif -#endif // LLVM_LIBC_UTILS_FPUTIL_FENVUTILS_H +#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_FENVUTILS_H diff --git a/libc/utils/FPUtil/FMA.h b/libc/src/__support/FPUtil/FMA.h rename from libc/utils/FPUtil/FMA.h rename to libc/src/__support/FPUtil/FMA.h --- a/libc/utils/FPUtil/FMA.h +++ b/libc/src/__support/FPUtil/FMA.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_UTILS_FPUTIL_FMA_H -#define LLVM_LIBC_UTILS_FPUTIL_FMA_H +#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_FMA_H +#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_FMA_H #include "utils/CPP/TypeTraits.h" @@ -34,4 +34,4 @@ #endif -#endif // LLVM_LIBC_UTILS_FPUTIL_FMA_H +#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_FMA_H diff --git a/libc/utils/FPUtil/FPBits.h b/libc/src/__support/FPUtil/FPBits.h rename from libc/utils/FPUtil/FPBits.h rename to libc/src/__support/FPUtil/FPBits.h --- a/libc/utils/FPUtil/FPBits.h +++ b/libc/src/__support/FPUtil/FPBits.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_UTILS_FPUTIL_FP_BITS_H -#define LLVM_LIBC_UTILS_FPUTIL_FP_BITS_H +#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_FP_BITS_H +#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_FP_BITS_H #include "PlatformDefs.h" @@ -153,7 +153,7 @@ } // namespace __llvm_libc #ifdef SPECIAL_X86_LONG_DOUBLE -#include "utils/FPUtil/LongDoubleBitsX86.h" +#include "src/__support/FPUtil/LongDoubleBitsX86.h" #endif -#endif // LLVM_LIBC_UTILS_FPUTIL_FP_BITS_H +#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_FP_BITS_H diff --git a/libc/utils/FPUtil/FPExceptMatcher.h b/libc/src/__support/FPUtil/FPExceptMatcher.h rename from libc/utils/FPUtil/FPExceptMatcher.h rename to libc/src/__support/FPUtil/FPExceptMatcher.h --- a/libc/utils/FPUtil/FPExceptMatcher.h +++ b/libc/src/__support/FPUtil/FPExceptMatcher.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_UTILS_FPUTIL_FP_EXCEPT_MATCHER_H -#define LLVM_LIBC_UTILS_FPUTIL_FP_EXCEPT_MATCHER_H +#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_FP_EXCEPT_MATCHER_H +#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_FP_EXCEPT_MATCHER_H #ifndef LLVM_LIBC_TEST_USE_FUCHSIA @@ -64,4 +64,4 @@ #define ASSERT_RAISES_FP_EXCEPT(func) ASSERT_DEATH(func, WITH_SIGNAL(SIGFPE)) #endif // LLVM_LIBC_TEST_USE_FUCHSIA -#endif // LLVM_LIBC_UTILS_FPUTIL_FP_EXCEPT_MATCHER_H +#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_FP_EXCEPT_MATCHER_H diff --git a/libc/utils/FPUtil/FPExceptMatcher.cpp b/libc/src/__support/FPUtil/FPExceptMatcher.cpp rename from libc/utils/FPUtil/FPExceptMatcher.cpp rename to libc/src/__support/FPUtil/FPExceptMatcher.cpp diff --git a/libc/utils/FPUtil/FloatProperties.h b/libc/src/__support/FPUtil/FloatProperties.h rename from libc/utils/FPUtil/FloatProperties.h rename to libc/src/__support/FPUtil/FloatProperties.h --- a/libc/utils/FPUtil/FloatProperties.h +++ b/libc/src/__support/FPUtil/FloatProperties.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_UTILS_FPUTIL_FLOAT_PROPERTIES_H -#define LLVM_LIBC_UTILS_FPUTIL_FLOAT_PROPERTIES_H +#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_FLOAT_PROPERTIES_H +#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_FLOAT_PROPERTIES_H #include "PlatformDefs.h" #include @@ -141,4 +141,4 @@ } // namespace fputil } // namespace __llvm_libc -#endif // LLVM_LIBC_UTILS_FPUTIL_FLOAT_PROPERTIES_H +#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_FLOAT_PROPERTIES_H diff --git a/libc/utils/FPUtil/Hypot.h b/libc/src/__support/FPUtil/Hypot.h rename from libc/utils/FPUtil/Hypot.h rename to libc/src/__support/FPUtil/Hypot.h --- a/libc/utils/FPUtil/Hypot.h +++ b/libc/src/__support/FPUtil/Hypot.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_UTILS_FPUTIL_HYPOT_H -#define LLVM_LIBC_UTILS_FPUTIL_HYPOT_H +#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_HYPOT_H +#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_HYPOT_H #include "BasicOperations.h" #include "FPBits.h" @@ -265,4 +265,4 @@ } // namespace fputil } // namespace __llvm_libc -#endif // LLVM_LIBC_UTILS_FPUTIL_HYPOT_H +#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_HYPOT_H diff --git a/libc/utils/FPUtil/LongDoubleBitsX86.h b/libc/src/__support/FPUtil/LongDoubleBitsX86.h rename from libc/utils/FPUtil/LongDoubleBitsX86.h rename to libc/src/__support/FPUtil/LongDoubleBitsX86.h --- a/libc/utils/FPUtil/LongDoubleBitsX86.h +++ b/libc/src/__support/FPUtil/LongDoubleBitsX86.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_UTILS_FPUTIL_LONG_DOUBLE_BITS_X86_H -#define LLVM_LIBC_UTILS_FPUTIL_LONG_DOUBLE_BITS_X86_H +#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_LONG_DOUBLE_BITS_X86_H +#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_LONG_DOUBLE_BITS_X86_H #include "FPBits.h" @@ -177,4 +177,4 @@ } // namespace fputil } // namespace __llvm_libc -#endif // LLVM_LIBC_UTILS_FPUTIL_LONG_DOUBLE_BITS_X86_H +#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_LONG_DOUBLE_BITS_X86_H diff --git a/libc/utils/FPUtil/ManipulationFunctions.h b/libc/src/__support/FPUtil/ManipulationFunctions.h rename from libc/utils/FPUtil/ManipulationFunctions.h rename to libc/src/__support/FPUtil/ManipulationFunctions.h --- a/libc/utils/FPUtil/ManipulationFunctions.h +++ b/libc/src/__support/FPUtil/ManipulationFunctions.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_UTILS_FPUTIL_MANIPULATION_FUNCTIONS_H -#define LLVM_LIBC_UTILS_FPUTIL_MANIPULATION_FUNCTIONS_H +#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_MANIPULATION_FUNCTIONS_H +#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_MANIPULATION_FUNCTIONS_H #include "FPBits.h" #include "NearestIntegerOperations.h" @@ -182,4 +182,4 @@ #include "NextAfterLongDoubleX86.h" #endif // SPECIAL_X86_LONG_DOUBLE -#endif // LLVM_LIBC_UTILS_FPUTIL_MANIPULATION_FUNCTIONS_H +#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_MANIPULATION_FUNCTIONS_H diff --git a/libc/utils/FPUtil/NearestIntegerOperations.h b/libc/src/__support/FPUtil/NearestIntegerOperations.h rename from libc/utils/FPUtil/NearestIntegerOperations.h rename to libc/src/__support/FPUtil/NearestIntegerOperations.h --- a/libc/utils/FPUtil/NearestIntegerOperations.h +++ b/libc/src/__support/FPUtil/NearestIntegerOperations.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_UTILS_FPUTIL_NEAREST_INTEGER_OPERATIONS_H -#define LLVM_LIBC_UTILS_FPUTIL_NEAREST_INTEGER_OPERATIONS_H +#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_NEAREST_INTEGER_OPERATIONS_H +#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_NEAREST_INTEGER_OPERATIONS_H #include "FEnvUtils.h" #include "FPBits.h" @@ -300,4 +300,4 @@ } // namespace fputil } // namespace __llvm_libc -#endif // LLVM_LIBC_UTILS_FPUTIL_NEAREST_INTEGER_OPERATIONS_H +#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_NEAREST_INTEGER_OPERATIONS_H diff --git a/libc/utils/FPUtil/NextAfterLongDoubleX86.h b/libc/src/__support/FPUtil/NextAfterLongDoubleX86.h rename from libc/utils/FPUtil/NextAfterLongDoubleX86.h rename to libc/src/__support/FPUtil/NextAfterLongDoubleX86.h --- a/libc/utils/FPUtil/NextAfterLongDoubleX86.h +++ b/libc/src/__support/FPUtil/NextAfterLongDoubleX86.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_UTILS_FPUTIL_NEXT_AFTER_LONG_DOUBLE_X86_H -#define LLVM_LIBC_UTILS_FPUTIL_NEXT_AFTER_LONG_DOUBLE_X86_H +#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_NEXT_AFTER_LONG_DOUBLE_X86_H +#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_NEXT_AFTER_LONG_DOUBLE_X86_H #include "FPBits.h" @@ -111,4 +111,4 @@ } // namespace fputil } // namespace __llvm_libc -#endif // LLVM_LIBC_UTILS_FPUTIL_NEXT_AFTER_LONG_DOUBLE_X86_H +#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_NEXT_AFTER_LONG_DOUBLE_X86_H diff --git a/libc/utils/FPUtil/NormalFloat.h b/libc/src/__support/FPUtil/NormalFloat.h rename from libc/utils/FPUtil/NormalFloat.h rename to libc/src/__support/FPUtil/NormalFloat.h --- a/libc/utils/FPUtil/NormalFloat.h +++ b/libc/src/__support/FPUtil/NormalFloat.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_UTILS_FPUTIL_NORMAL_FLOAT_H -#define LLVM_LIBC_UTILS_FPUTIL_NORMAL_FLOAT_H +#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_NORMAL_FLOAT_H +#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_NORMAL_FLOAT_H #include "FPBits.h" @@ -260,4 +260,4 @@ } // namespace fputil } // namespace __llvm_libc -#endif // LLVM_LIBC_UTILS_FPUTIL_NORMAL_FLOAT_H +#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_NORMAL_FLOAT_H diff --git a/libc/utils/FPUtil/PlatformDefs.h b/libc/src/__support/FPUtil/PlatformDefs.h rename from libc/utils/FPUtil/PlatformDefs.h rename to libc/src/__support/FPUtil/PlatformDefs.h --- a/libc/utils/FPUtil/PlatformDefs.h +++ b/libc/src/__support/FPUtil/PlatformDefs.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_UTILS_FPUTIL_PLATFORM_DEFS_H -#define LLVM_LIBC_UTILS_FPUTIL_PLATFORM_DEFS_H +#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_PLATFORM_DEFS_H +#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_PLATFORM_DEFS_H #if defined(__x86_64__) || defined(__i386__) #define X87_FPU @@ -21,4 +21,4 @@ #define SPECIAL_X86_LONG_DOUBLE #endif -#endif // LLVM_LIBC_UTILS_FPUTIL_PLATFORM_DEFS_H +#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_PLATFORM_DEFS_H diff --git a/libc/utils/FPUtil/PolyEval.h b/libc/src/__support/FPUtil/PolyEval.h rename from libc/utils/FPUtil/PolyEval.h rename to libc/src/__support/FPUtil/PolyEval.h --- a/libc/utils/FPUtil/PolyEval.h +++ b/libc/src/__support/FPUtil/PolyEval.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_UTILS_FPUTIL_POLYEVAL_H -#define LLVM_LIBC_UTILS_FPUTIL_POLYEVAL_H +#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_POLYEVAL_H +#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_POLYEVAL_H #include "utils/CPP/TypeTraits.h" @@ -51,4 +51,4 @@ #endif -#endif // LLVM_LIBC_UTILS_FPUTIL_FMA_H +#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_FMA_H diff --git a/libc/utils/FPUtil/Sqrt.h b/libc/src/__support/FPUtil/Sqrt.h rename from libc/utils/FPUtil/Sqrt.h rename to libc/src/__support/FPUtil/Sqrt.h --- a/libc/utils/FPUtil/Sqrt.h +++ b/libc/src/__support/FPUtil/Sqrt.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_UTILS_FPUTIL_SQRT_H -#define LLVM_LIBC_UTILS_FPUTIL_SQRT_H +#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_SQRT_H +#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_SQRT_H #include "FPBits.h" #include "PlatformDefs.h" @@ -189,4 +189,4 @@ #include "SqrtLongDoubleX86.h" #endif // SPECIAL_X86_LONG_DOUBLE -#endif // LLVM_LIBC_UTILS_FPUTIL_SQRT_H +#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_SQRT_H diff --git a/libc/utils/FPUtil/SqrtLongDoubleX86.h b/libc/src/__support/FPUtil/SqrtLongDoubleX86.h rename from libc/utils/FPUtil/SqrtLongDoubleX86.h rename to libc/src/__support/FPUtil/SqrtLongDoubleX86.h --- a/libc/utils/FPUtil/SqrtLongDoubleX86.h +++ b/libc/src/__support/FPUtil/SqrtLongDoubleX86.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_UTILS_FPUTIL_SQRT_LONG_DOUBLE_X86_H -#define LLVM_LIBC_UTILS_FPUTIL_SQRT_LONG_DOUBLE_X86_H +#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_SQRT_LONG_DOUBLE_X86_H +#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_SQRT_LONG_DOUBLE_X86_H #include "FPBits.h" #include "Sqrt.h" @@ -139,4 +139,4 @@ } // namespace fputil } // namespace __llvm_libc -#endif // LLVM_LIBC_UTILS_FPUTIL_SQRT_LONG_DOUBLE_X86_H +#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_SQRT_LONG_DOUBLE_X86_H diff --git a/libc/utils/FPUtil/TestHelpers.h b/libc/src/__support/FPUtil/TestHelpers.h rename from libc/utils/FPUtil/TestHelpers.h rename to libc/src/__support/FPUtil/TestHelpers.h --- a/libc/utils/FPUtil/TestHelpers.h +++ b/libc/src/__support/FPUtil/TestHelpers.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_UTILS_FPUTIL_TEST_HELPERS_H -#define LLVM_LIBC_UTILS_FPUTIL_TEST_HELPERS_H +#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_TEST_HELPERS_H +#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_TEST_HELPERS_H #include "FPBits.h" @@ -98,4 +98,4 @@ __llvm_libc::fputil::testing::getMatcher<__llvm_libc::testing::Cond_NE>( \ expected)) -#endif // LLVM_LIBC_UTILS_FPUTIL_TEST_HELPERS_H +#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_TEST_HELPERS_H diff --git a/libc/utils/FPUtil/TestHelpers.cpp b/libc/src/__support/FPUtil/TestHelpers.cpp rename from libc/utils/FPUtil/TestHelpers.cpp rename to libc/src/__support/FPUtil/TestHelpers.cpp diff --git a/libc/utils/FPUtil/aarch64/FEnvImpl.h b/libc/src/__support/FPUtil/aarch64/FEnvImpl.h rename from libc/utils/FPUtil/aarch64/FEnvImpl.h rename to libc/src/__support/FPUtil/aarch64/FEnvImpl.h --- a/libc/utils/FPUtil/aarch64/FEnvImpl.h +++ b/libc/src/__support/FPUtil/aarch64/FEnvImpl.h @@ -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 #include #include -#include "utils/FPUtil/FPBits.h" +#include "src/__support/FPUtil/FPBits.h" namespace __llvm_libc { namespace fputil { @@ -232,4 +232,4 @@ } // namespace fputil } // namespace __llvm_libc -#endif // LLVM_LIBC_UTILS_FPUTIL_AARCH64_FENVIMPL_H +#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_AARCH64_FENVIMPL_H diff --git a/libc/utils/FPUtil/aarch64/FMA.h b/libc/src/__support/FPUtil/aarch64/FMA.h rename from libc/utils/FPUtil/aarch64/FMA.h rename to libc/src/__support/FPUtil/aarch64/FMA.h --- a/libc/utils/FPUtil/aarch64/FMA.h +++ b/libc/src/__support/FPUtil/aarch64/FMA.h @@ -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" @@ -35,4 +35,4 @@ } // namespace fputil } // namespace __llvm_libc -#endif // LLVM_LIBC_UTILS_FPUTIL_AARCH64_FMA_H +#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_AARCH64_FMA_H diff --git a/libc/utils/FPUtil/generic/FMA.h b/libc/src/__support/FPUtil/generic/FMA.h rename from libc/utils/FPUtil/generic/FMA.h rename to libc/src/__support/FPUtil/generic/FMA.h --- a/libc/utils/FPUtil/generic/FMA.h +++ b/libc/src/__support/FPUtil/generic/FMA.h @@ -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" @@ -69,4 +69,4 @@ } // namespace fputil } // namespace __llvm_libc -#endif // LLVM_LIBC_UTILS_FPUTIL_GENERIC_FMA_H +#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_GENERIC_FMA_H diff --git a/libc/utils/FPUtil/generic/README.md b/libc/src/__support/FPUtil/generic/README.md rename from libc/utils/FPUtil/generic/README.md rename to libc/src/__support/FPUtil/generic/README.md diff --git a/libc/utils/FPUtil/x86_64/FEnvImpl.h b/libc/src/__support/FPUtil/x86_64/FEnvImpl.h rename from libc/utils/FPUtil/x86_64/FEnvImpl.h rename to libc/src/__support/FPUtil/x86_64/FEnvImpl.h --- a/libc/utils/FPUtil/x86_64/FEnvImpl.h +++ b/libc/src/__support/FPUtil/x86_64/FEnvImpl.h @@ -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 #include @@ -238,7 +238,7 @@ // 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; @@ -386,4 +386,4 @@ } // namespace fputil } // namespace __llvm_libc -#endif // LLVM_LIBC_UTILS_FPUTIL_X86_64_FENVIMPL_H +#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_X86_64_FENVIMPL_H diff --git a/libc/utils/FPUtil/x86_64/FMA.h b/libc/src/__support/FPUtil/x86_64/FMA.h rename from libc/utils/FPUtil/x86_64/FMA.h rename to libc/src/__support/FPUtil/x86_64/FMA.h --- a/libc/utils/FPUtil/x86_64/FMA.h +++ b/libc/src/__support/FPUtil/x86_64/FMA.h @@ -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" @@ -37,4 +37,4 @@ } // namespace fputil } // namespace __llvm_libc -#endif // LLVM_LIBC_UTILS_FPUTIL_X86_64_FMA_H +#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_X86_64_FMA_H diff --git a/libc/src/ctype/ctype_utils.h b/libc/src/__support/ctype_utils.h rename from libc/src/ctype/ctype_utils.h rename to libc/src/__support/ctype_utils.h --- a/libc/src/ctype/ctype_utils.h +++ b/libc/src/__support/ctype_utils.h @@ -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 { @@ -30,7 +30,11 @@ 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 diff --git a/libc/src/ctype/CMakeLists.txt b/libc/src/ctype/CMakeLists.txt --- a/libc/src/ctype/CMakeLists.txt +++ b/libc/src/ctype/CMakeLists.txt @@ -1,9 +1,3 @@ -add_header_library( - ctype_utils - HDRS - ctype_utils.h -) - add_entrypoint_object( isalnum SRCS @@ -11,7 +5,7 @@ HDRS isalnum.h DEPENDS - .ctype_utils + libc.src.__support.ctype_utils ) add_entrypoint_object( @@ -21,7 +15,7 @@ HDRS isalpha.h DEPENDS - .ctype_utils + libc.src.__support.ctype_utils ) add_entrypoint_object( @@ -55,7 +49,7 @@ HDRS isdigit.h DEPENDS - .ctype_utils + libc.src.__support.ctype_utils ) add_entrypoint_object( @@ -65,7 +59,7 @@ HDRS isgraph.h DEPENDS - .ctype_utils + libc.src.__support.ctype_utils ) add_entrypoint_object( @@ -75,7 +69,7 @@ HDRS islower.h DEPENDS - .ctype_utils + libc.src.__support.ctype_utils ) add_entrypoint_object( @@ -93,7 +87,7 @@ HDRS ispunct.h DEPENDS - .ctype_utils + libc.src.__support.ctype_utils ) add_entrypoint_object( @@ -111,7 +105,7 @@ HDRS isupper.h DEPENDS - .ctype_utils + libc.src.__support.ctype_utils ) add_entrypoint_object( @@ -121,7 +115,7 @@ HDRS isxdigit.h DEPENDS - .ctype_utils + libc.src.__support.ctype_utils ) add_entrypoint_object( @@ -131,7 +125,7 @@ HDRS tolower.h DEPENDS - .ctype_utils + libc.src.__support.ctype_utils ) add_entrypoint_object( @@ -149,5 +143,5 @@ HDRS toupper.h DEPENDS - .ctype_utils + libc.src.__support.ctype_utils ) diff --git a/libc/src/ctype/isalnum.cpp b/libc/src/ctype/isalnum.cpp --- a/libc/src/ctype/isalnum.cpp +++ b/libc/src/ctype/isalnum.cpp @@ -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" diff --git a/libc/src/ctype/isalpha.cpp b/libc/src/ctype/isalpha.cpp --- a/libc/src/ctype/isalpha.cpp +++ b/libc/src/ctype/isalpha.cpp @@ -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 { diff --git a/libc/src/ctype/isdigit.cpp b/libc/src/ctype/isdigit.cpp --- a/libc/src/ctype/isdigit.cpp +++ b/libc/src/ctype/isdigit.cpp @@ -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 { diff --git a/libc/src/ctype/isgraph.cpp b/libc/src/ctype/isgraph.cpp --- a/libc/src/ctype/isgraph.cpp +++ b/libc/src/ctype/isgraph.cpp @@ -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 { diff --git a/libc/src/ctype/islower.cpp b/libc/src/ctype/islower.cpp --- a/libc/src/ctype/islower.cpp +++ b/libc/src/ctype/islower.cpp @@ -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" diff --git a/libc/src/ctype/ispunct.cpp b/libc/src/ctype/ispunct.cpp --- a/libc/src/ctype/ispunct.cpp +++ b/libc/src/ctype/ispunct.cpp @@ -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 { diff --git a/libc/src/ctype/isspace.cpp b/libc/src/ctype/isspace.cpp --- a/libc/src/ctype/isspace.cpp +++ b/libc/src/ctype/isspace.cpp @@ -7,6 +7,7 @@ //===----------------------------------------------------------------------===// #include "src/ctype/isspace.h" +#include "src/__support/ctype_utils.h" #include "src/__support/common.h" @@ -14,9 +15,6 @@ // 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 diff --git a/libc/src/ctype/isupper.cpp b/libc/src/ctype/isupper.cpp --- a/libc/src/ctype/isupper.cpp +++ b/libc/src/ctype/isupper.cpp @@ -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" diff --git a/libc/src/ctype/isxdigit.cpp b/libc/src/ctype/isxdigit.cpp --- a/libc/src/ctype/isxdigit.cpp +++ b/libc/src/ctype/isxdigit.cpp @@ -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" diff --git a/libc/src/ctype/tolower.cpp b/libc/src/ctype/tolower.cpp --- a/libc/src/ctype/tolower.cpp +++ b/libc/src/ctype/tolower.cpp @@ -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" diff --git a/libc/src/ctype/toupper.cpp b/libc/src/ctype/toupper.cpp --- a/libc/src/ctype/toupper.cpp +++ b/libc/src/ctype/toupper.cpp @@ -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" diff --git a/libc/src/fenv/CMakeLists.txt b/libc/src/fenv/CMakeLists.txt --- a/libc/src/fenv/CMakeLists.txt +++ b/libc/src/fenv/CMakeLists.txt @@ -6,7 +6,7 @@ fegetround.h DEPENDS libc.include.fenv - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -19,7 +19,7 @@ fesetround.h DEPENDS libc.include.fenv - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -32,7 +32,7 @@ feclearexcept.h DEPENDS libc.include.fenv - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -45,7 +45,7 @@ feraiseexcept.h DEPENDS libc.include.fenv - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -58,7 +58,7 @@ fetestexcept.h DEPENDS libc.include.fenv - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -71,7 +71,7 @@ fegetenv.h DEPENDS libc.include.fenv - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -84,7 +84,7 @@ fesetenv.h DEPENDS libc.include.fenv - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -97,7 +97,7 @@ fegetexceptflag.h DEPENDS libc.include.fenv - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -110,7 +110,7 @@ fesetexceptflag.h DEPENDS libc.include.fenv - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -123,7 +123,7 @@ feholdexcept.h DEPENDS libc.include.fenv - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -136,7 +136,7 @@ feupdateenv.h DEPENDS libc.include.fenv - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) diff --git a/libc/src/fenv/feclearexcept.cpp b/libc/src/fenv/feclearexcept.cpp --- a/libc/src/fenv/feclearexcept.cpp +++ b/libc/src/fenv/feclearexcept.cpp @@ -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 { diff --git a/libc/src/fenv/fegetenv.cpp b/libc/src/fenv/fegetenv.cpp --- a/libc/src/fenv/fegetenv.cpp +++ b/libc/src/fenv/fegetenv.cpp @@ -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 { diff --git a/libc/src/fenv/fegetexceptflag.cpp b/libc/src/fenv/fegetexceptflag.cpp --- a/libc/src/fenv/fegetexceptflag.cpp +++ b/libc/src/fenv/fegetexceptflag.cpp @@ -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 diff --git a/libc/src/fenv/fegetround.cpp b/libc/src/fenv/fegetround.cpp --- a/libc/src/fenv/fegetround.cpp +++ b/libc/src/fenv/fegetround.cpp @@ -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 { diff --git a/libc/src/fenv/feholdexcept.cpp b/libc/src/fenv/feholdexcept.cpp --- a/libc/src/fenv/feholdexcept.cpp +++ b/libc/src/fenv/feholdexcept.cpp @@ -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 diff --git a/libc/src/fenv/feraiseexcept.cpp b/libc/src/fenv/feraiseexcept.cpp --- a/libc/src/fenv/feraiseexcept.cpp +++ b/libc/src/fenv/feraiseexcept.cpp @@ -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 { diff --git a/libc/src/fenv/fesetenv.cpp b/libc/src/fenv/fesetenv.cpp --- a/libc/src/fenv/fesetenv.cpp +++ b/libc/src/fenv/fesetenv.cpp @@ -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 { diff --git a/libc/src/fenv/fesetexceptflag.cpp b/libc/src/fenv/fesetexceptflag.cpp --- a/libc/src/fenv/fesetexceptflag.cpp +++ b/libc/src/fenv/fesetexceptflag.cpp @@ -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 diff --git a/libc/src/fenv/fesetround.cpp b/libc/src/fenv/fesetround.cpp --- a/libc/src/fenv/fesetround.cpp +++ b/libc/src/fenv/fesetround.cpp @@ -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 { diff --git a/libc/src/fenv/fetestexcept.cpp b/libc/src/fenv/fetestexcept.cpp --- a/libc/src/fenv/fetestexcept.cpp +++ b/libc/src/fenv/fetestexcept.cpp @@ -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 { diff --git a/libc/src/fenv/feupdateenv.cpp b/libc/src/fenv/feupdateenv.cpp --- a/libc/src/fenv/feupdateenv.cpp +++ b/libc/src/fenv/feupdateenv.cpp @@ -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 diff --git a/libc/src/math/CMakeLists.txt b/libc/src/math/CMakeLists.txt --- a/libc/src/math/CMakeLists.txt +++ b/libc/src/math/CMakeLists.txt @@ -47,7 +47,7 @@ HDRS fmaf.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -59,7 +59,7 @@ HDRS fma.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) diff --git a/libc/src/math/fma.cpp b/libc/src/math/fma.cpp --- a/libc/src/math/fma.cpp +++ b/libc/src/math/fma.cpp @@ -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 { diff --git a/libc/src/math/fmaf.cpp b/libc/src/math/fmaf.cpp --- a/libc/src/math/fmaf.cpp +++ b/libc/src/math/fmaf.cpp @@ -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 { diff --git a/libc/src/math/generic/CMakeLists.txt b/libc/src/math/generic/CMakeLists.txt --- a/libc/src/math/generic/CMakeLists.txt +++ b/libc/src/math/generic/CMakeLists.txt @@ -5,7 +5,7 @@ HDRS ../ceil.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -17,7 +17,7 @@ HDRS ../ceilf.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -29,7 +29,7 @@ HDRS ../ceill.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -78,7 +78,7 @@ .sincosf_utils libc.include.math libc.src.errno.__errno_location - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O3 ) @@ -102,7 +102,7 @@ HDRS ../fabs.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -114,7 +114,7 @@ HDRS ../fabsf.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -126,7 +126,7 @@ HDRS ../fabsl.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -138,7 +138,7 @@ HDRS ../trunc.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -150,7 +150,7 @@ HDRS ../truncf.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -162,7 +162,7 @@ HDRS ../truncl.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -174,7 +174,7 @@ HDRS ../floor.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -186,7 +186,7 @@ HDRS ../floorf.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -198,7 +198,7 @@ HDRS ../floorl.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -210,7 +210,7 @@ HDRS ../round.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -222,7 +222,7 @@ HDRS ../roundf.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -234,7 +234,7 @@ HDRS ../roundl.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -246,7 +246,7 @@ HDRS ../lround.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -258,7 +258,7 @@ HDRS ../lroundf.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -270,7 +270,7 @@ HDRS ../lroundl.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -282,7 +282,7 @@ HDRS ../llround.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -294,7 +294,7 @@ HDRS ../llroundf.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -306,7 +306,7 @@ HDRS ../llroundl.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -318,7 +318,7 @@ HDRS ../rint.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -330,7 +330,7 @@ HDRS ../rintf.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -342,7 +342,7 @@ HDRS ../rintl.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -354,7 +354,7 @@ HDRS ../lrint.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -366,7 +366,7 @@ HDRS ../lrintf.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -378,7 +378,7 @@ HDRS ../lrintl.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -390,7 +390,7 @@ HDRS ../llrint.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -402,7 +402,7 @@ HDRS ../llrintf.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -414,7 +414,7 @@ HDRS ../llrintl.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -426,7 +426,7 @@ HDRS ../nearbyint.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -438,7 +438,7 @@ HDRS ../nearbyintf.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -450,7 +450,7 @@ HDRS ../nearbyintl.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -508,7 +508,7 @@ HDRS ../copysign.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -520,7 +520,7 @@ HDRS ../copysignf.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -532,7 +532,7 @@ HDRS ../copysignl.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -544,7 +544,7 @@ HDRS ../frexp.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -556,7 +556,7 @@ HDRS ../frexpf.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -568,7 +568,7 @@ HDRS ../frexpl.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -580,7 +580,7 @@ HDRS ../ilogb.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -592,7 +592,7 @@ HDRS ../ilogbf.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -604,7 +604,7 @@ HDRS ../ilogbl.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -616,7 +616,7 @@ HDRS ../ldexp.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -628,7 +628,7 @@ HDRS ../ldexpf.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -640,7 +640,7 @@ HDRS ../ldexpl.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -652,7 +652,7 @@ HDRS ../logb.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -664,7 +664,7 @@ HDRS ../logbf.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -676,7 +676,7 @@ HDRS ../logbl.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -688,7 +688,7 @@ HDRS ../modf.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -700,7 +700,7 @@ HDRS ../modff.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -712,7 +712,7 @@ HDRS ../modfl.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -724,7 +724,7 @@ HDRS ../fmin.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -736,7 +736,7 @@ HDRS ../fminf.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -748,7 +748,7 @@ HDRS ../fminl.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -760,7 +760,7 @@ HDRS ../fmax.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -772,7 +772,7 @@ HDRS ../fmaxf.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -784,7 +784,7 @@ HDRS ../fmaxl.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -796,7 +796,7 @@ HDRS ../sqrt.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -808,7 +808,7 @@ HDRS ../sqrtf.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -820,7 +820,7 @@ HDRS ../sqrtl.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -832,7 +832,7 @@ HDRS ../remquof.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -844,7 +844,7 @@ HDRS ../remquo.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -856,7 +856,7 @@ HDRS ../remquol.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -868,7 +868,7 @@ HDRS ../remainderf.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -880,7 +880,7 @@ HDRS ../remainder.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -892,7 +892,7 @@ HDRS ../remainderl.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -904,7 +904,7 @@ HDRS ../hypotf.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -916,7 +916,7 @@ HDRS ../fdim.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -928,7 +928,7 @@ HDRS ../fdimf.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -940,7 +940,7 @@ HDRS ../fdiml.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -952,7 +952,7 @@ HDRS ../hypot.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -964,7 +964,7 @@ HDRS ../nextafter.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -976,7 +976,7 @@ HDRS ../nextafterf.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) @@ -988,7 +988,7 @@ HDRS ../nextafterl.h DEPENDS - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil COMPILE_OPTIONS -O2 ) diff --git a/libc/src/math/generic/ceil.cpp b/libc/src/math/generic/ceil.cpp --- a/libc/src/math/generic/ceil.cpp +++ b/libc/src/math/generic/ceil.cpp @@ -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 { diff --git a/libc/src/math/generic/ceilf.cpp b/libc/src/math/generic/ceilf.cpp --- a/libc/src/math/generic/ceilf.cpp +++ b/libc/src/math/generic/ceilf.cpp @@ -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 { diff --git a/libc/src/math/generic/ceill.cpp b/libc/src/math/generic/ceill.cpp --- a/libc/src/math/generic/ceill.cpp +++ b/libc/src/math/generic/ceill.cpp @@ -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 { diff --git a/libc/src/math/generic/copysign.cpp b/libc/src/math/generic/copysign.cpp --- a/libc/src/math/generic/copysign.cpp +++ b/libc/src/math/generic/copysign.cpp @@ -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 { diff --git a/libc/src/math/generic/copysignf.cpp b/libc/src/math/generic/copysignf.cpp --- a/libc/src/math/generic/copysignf.cpp +++ b/libc/src/math/generic/copysignf.cpp @@ -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 { diff --git a/libc/src/math/generic/copysignl.cpp b/libc/src/math/generic/copysignl.cpp --- a/libc/src/math/generic/copysignl.cpp +++ b/libc/src/math/generic/copysignl.cpp @@ -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 { diff --git a/libc/src/math/generic/expm1f.cpp b/libc/src/math/generic/expm1f.cpp --- a/libc/src/math/generic/expm1f.cpp +++ b/libc/src/math/generic/expm1f.cpp @@ -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 { diff --git a/libc/src/math/generic/fabs.cpp b/libc/src/math/generic/fabs.cpp --- a/libc/src/math/generic/fabs.cpp +++ b/libc/src/math/generic/fabs.cpp @@ -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 { diff --git a/libc/src/math/generic/fabsf.cpp b/libc/src/math/generic/fabsf.cpp --- a/libc/src/math/generic/fabsf.cpp +++ b/libc/src/math/generic/fabsf.cpp @@ -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 { diff --git a/libc/src/math/generic/fabsl.cpp b/libc/src/math/generic/fabsl.cpp --- a/libc/src/math/generic/fabsl.cpp +++ b/libc/src/math/generic/fabsl.cpp @@ -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 { diff --git a/libc/src/math/generic/fdim.cpp b/libc/src/math/generic/fdim.cpp --- a/libc/src/math/generic/fdim.cpp +++ b/libc/src/math/generic/fdim.cpp @@ -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 { diff --git a/libc/src/math/generic/fdimf.cpp b/libc/src/math/generic/fdimf.cpp --- a/libc/src/math/generic/fdimf.cpp +++ b/libc/src/math/generic/fdimf.cpp @@ -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 { diff --git a/libc/src/math/generic/fdiml.cpp b/libc/src/math/generic/fdiml.cpp --- a/libc/src/math/generic/fdiml.cpp +++ b/libc/src/math/generic/fdiml.cpp @@ -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 { diff --git a/libc/src/math/generic/floor.cpp b/libc/src/math/generic/floor.cpp --- a/libc/src/math/generic/floor.cpp +++ b/libc/src/math/generic/floor.cpp @@ -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 { diff --git a/libc/src/math/generic/floorf.cpp b/libc/src/math/generic/floorf.cpp --- a/libc/src/math/generic/floorf.cpp +++ b/libc/src/math/generic/floorf.cpp @@ -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 { diff --git a/libc/src/math/generic/floorl.cpp b/libc/src/math/generic/floorl.cpp --- a/libc/src/math/generic/floorl.cpp +++ b/libc/src/math/generic/floorl.cpp @@ -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 { diff --git a/libc/src/math/generic/fmax.cpp b/libc/src/math/generic/fmax.cpp --- a/libc/src/math/generic/fmax.cpp +++ b/libc/src/math/generic/fmax.cpp @@ -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 { diff --git a/libc/src/math/generic/fmaxf.cpp b/libc/src/math/generic/fmaxf.cpp --- a/libc/src/math/generic/fmaxf.cpp +++ b/libc/src/math/generic/fmaxf.cpp @@ -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 { diff --git a/libc/src/math/generic/fmaxl.cpp b/libc/src/math/generic/fmaxl.cpp --- a/libc/src/math/generic/fmaxl.cpp +++ b/libc/src/math/generic/fmaxl.cpp @@ -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 { diff --git a/libc/src/math/generic/fmin.cpp b/libc/src/math/generic/fmin.cpp --- a/libc/src/math/generic/fmin.cpp +++ b/libc/src/math/generic/fmin.cpp @@ -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 { diff --git a/libc/src/math/generic/fminf.cpp b/libc/src/math/generic/fminf.cpp --- a/libc/src/math/generic/fminf.cpp +++ b/libc/src/math/generic/fminf.cpp @@ -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 { diff --git a/libc/src/math/generic/fminl.cpp b/libc/src/math/generic/fminl.cpp --- a/libc/src/math/generic/fminl.cpp +++ b/libc/src/math/generic/fminl.cpp @@ -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 { diff --git a/libc/src/math/generic/frexp.cpp b/libc/src/math/generic/frexp.cpp --- a/libc/src/math/generic/frexp.cpp +++ b/libc/src/math/generic/frexp.cpp @@ -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 { diff --git a/libc/src/math/generic/frexpf.cpp b/libc/src/math/generic/frexpf.cpp --- a/libc/src/math/generic/frexpf.cpp +++ b/libc/src/math/generic/frexpf.cpp @@ -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 { diff --git a/libc/src/math/generic/frexpl.cpp b/libc/src/math/generic/frexpl.cpp --- a/libc/src/math/generic/frexpl.cpp +++ b/libc/src/math/generic/frexpl.cpp @@ -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 { diff --git a/libc/src/math/generic/hypot.cpp b/libc/src/math/generic/hypot.cpp --- a/libc/src/math/generic/hypot.cpp +++ b/libc/src/math/generic/hypot.cpp @@ -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 { diff --git a/libc/src/math/generic/hypotf.cpp b/libc/src/math/generic/hypotf.cpp --- a/libc/src/math/generic/hypotf.cpp +++ b/libc/src/math/generic/hypotf.cpp @@ -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 { diff --git a/libc/src/math/generic/ilogb.cpp b/libc/src/math/generic/ilogb.cpp --- a/libc/src/math/generic/ilogb.cpp +++ b/libc/src/math/generic/ilogb.cpp @@ -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 { diff --git a/libc/src/math/generic/ilogbf.cpp b/libc/src/math/generic/ilogbf.cpp --- a/libc/src/math/generic/ilogbf.cpp +++ b/libc/src/math/generic/ilogbf.cpp @@ -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 { diff --git a/libc/src/math/generic/ilogbl.cpp b/libc/src/math/generic/ilogbl.cpp --- a/libc/src/math/generic/ilogbl.cpp +++ b/libc/src/math/generic/ilogbl.cpp @@ -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 { diff --git a/libc/src/math/generic/ldexp.cpp b/libc/src/math/generic/ldexp.cpp --- a/libc/src/math/generic/ldexp.cpp +++ b/libc/src/math/generic/ldexp.cpp @@ -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 { diff --git a/libc/src/math/generic/ldexpf.cpp b/libc/src/math/generic/ldexpf.cpp --- a/libc/src/math/generic/ldexpf.cpp +++ b/libc/src/math/generic/ldexpf.cpp @@ -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 { diff --git a/libc/src/math/generic/ldexpl.cpp b/libc/src/math/generic/ldexpl.cpp --- a/libc/src/math/generic/ldexpl.cpp +++ b/libc/src/math/generic/ldexpl.cpp @@ -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 { diff --git a/libc/src/math/generic/llrint.cpp b/libc/src/math/generic/llrint.cpp --- a/libc/src/math/generic/llrint.cpp +++ b/libc/src/math/generic/llrint.cpp @@ -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 { diff --git a/libc/src/math/generic/llrintf.cpp b/libc/src/math/generic/llrintf.cpp --- a/libc/src/math/generic/llrintf.cpp +++ b/libc/src/math/generic/llrintf.cpp @@ -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 { diff --git a/libc/src/math/generic/llrintl.cpp b/libc/src/math/generic/llrintl.cpp --- a/libc/src/math/generic/llrintl.cpp +++ b/libc/src/math/generic/llrintl.cpp @@ -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 { diff --git a/libc/src/math/generic/llround.cpp b/libc/src/math/generic/llround.cpp --- a/libc/src/math/generic/llround.cpp +++ b/libc/src/math/generic/llround.cpp @@ -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 { diff --git a/libc/src/math/generic/llroundf.cpp b/libc/src/math/generic/llroundf.cpp --- a/libc/src/math/generic/llroundf.cpp +++ b/libc/src/math/generic/llroundf.cpp @@ -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 { diff --git a/libc/src/math/generic/llroundl.cpp b/libc/src/math/generic/llroundl.cpp --- a/libc/src/math/generic/llroundl.cpp +++ b/libc/src/math/generic/llroundl.cpp @@ -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 { diff --git a/libc/src/math/generic/logb.cpp b/libc/src/math/generic/logb.cpp --- a/libc/src/math/generic/logb.cpp +++ b/libc/src/math/generic/logb.cpp @@ -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 { diff --git a/libc/src/math/generic/logbf.cpp b/libc/src/math/generic/logbf.cpp --- a/libc/src/math/generic/logbf.cpp +++ b/libc/src/math/generic/logbf.cpp @@ -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 { diff --git a/libc/src/math/generic/logbl.cpp b/libc/src/math/generic/logbl.cpp --- a/libc/src/math/generic/logbl.cpp +++ b/libc/src/math/generic/logbl.cpp @@ -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 { diff --git a/libc/src/math/generic/lrint.cpp b/libc/src/math/generic/lrint.cpp --- a/libc/src/math/generic/lrint.cpp +++ b/libc/src/math/generic/lrint.cpp @@ -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 { diff --git a/libc/src/math/generic/lrintf.cpp b/libc/src/math/generic/lrintf.cpp --- a/libc/src/math/generic/lrintf.cpp +++ b/libc/src/math/generic/lrintf.cpp @@ -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 { diff --git a/libc/src/math/generic/lrintl.cpp b/libc/src/math/generic/lrintl.cpp --- a/libc/src/math/generic/lrintl.cpp +++ b/libc/src/math/generic/lrintl.cpp @@ -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 { diff --git a/libc/src/math/generic/lround.cpp b/libc/src/math/generic/lround.cpp --- a/libc/src/math/generic/lround.cpp +++ b/libc/src/math/generic/lround.cpp @@ -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 { diff --git a/libc/src/math/generic/lroundf.cpp b/libc/src/math/generic/lroundf.cpp --- a/libc/src/math/generic/lroundf.cpp +++ b/libc/src/math/generic/lroundf.cpp @@ -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 { diff --git a/libc/src/math/generic/lroundl.cpp b/libc/src/math/generic/lroundl.cpp --- a/libc/src/math/generic/lroundl.cpp +++ b/libc/src/math/generic/lroundl.cpp @@ -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 { diff --git a/libc/src/math/generic/modf.cpp b/libc/src/math/generic/modf.cpp --- a/libc/src/math/generic/modf.cpp +++ b/libc/src/math/generic/modf.cpp @@ -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 { diff --git a/libc/src/math/generic/modff.cpp b/libc/src/math/generic/modff.cpp --- a/libc/src/math/generic/modff.cpp +++ b/libc/src/math/generic/modff.cpp @@ -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 { diff --git a/libc/src/math/generic/modfl.cpp b/libc/src/math/generic/modfl.cpp --- a/libc/src/math/generic/modfl.cpp +++ b/libc/src/math/generic/modfl.cpp @@ -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 { diff --git a/libc/src/math/generic/nearbyint.cpp b/libc/src/math/generic/nearbyint.cpp --- a/libc/src/math/generic/nearbyint.cpp +++ b/libc/src/math/generic/nearbyint.cpp @@ -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 { diff --git a/libc/src/math/generic/nearbyintf.cpp b/libc/src/math/generic/nearbyintf.cpp --- a/libc/src/math/generic/nearbyintf.cpp +++ b/libc/src/math/generic/nearbyintf.cpp @@ -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 { diff --git a/libc/src/math/generic/nearbyintl.cpp b/libc/src/math/generic/nearbyintl.cpp --- a/libc/src/math/generic/nearbyintl.cpp +++ b/libc/src/math/generic/nearbyintl.cpp @@ -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 { diff --git a/libc/src/math/generic/nextafter.cpp b/libc/src/math/generic/nextafter.cpp --- a/libc/src/math/generic/nextafter.cpp +++ b/libc/src/math/generic/nextafter.cpp @@ -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 { diff --git a/libc/src/math/generic/nextafterf.cpp b/libc/src/math/generic/nextafterf.cpp --- a/libc/src/math/generic/nextafterf.cpp +++ b/libc/src/math/generic/nextafterf.cpp @@ -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 { diff --git a/libc/src/math/generic/nextafterl.cpp b/libc/src/math/generic/nextafterl.cpp --- a/libc/src/math/generic/nextafterl.cpp +++ b/libc/src/math/generic/nextafterl.cpp @@ -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 { diff --git a/libc/src/math/generic/remainder.cpp b/libc/src/math/generic/remainder.cpp --- a/libc/src/math/generic/remainder.cpp +++ b/libc/src/math/generic/remainder.cpp @@ -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 { diff --git a/libc/src/math/generic/remainderf.cpp b/libc/src/math/generic/remainderf.cpp --- a/libc/src/math/generic/remainderf.cpp +++ b/libc/src/math/generic/remainderf.cpp @@ -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 { diff --git a/libc/src/math/generic/remainderl.cpp b/libc/src/math/generic/remainderl.cpp --- a/libc/src/math/generic/remainderl.cpp +++ b/libc/src/math/generic/remainderl.cpp @@ -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 { diff --git a/libc/src/math/generic/remquo.cpp b/libc/src/math/generic/remquo.cpp --- a/libc/src/math/generic/remquo.cpp +++ b/libc/src/math/generic/remquo.cpp @@ -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 { diff --git a/libc/src/math/generic/remquof.cpp b/libc/src/math/generic/remquof.cpp --- a/libc/src/math/generic/remquof.cpp +++ b/libc/src/math/generic/remquof.cpp @@ -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 { diff --git a/libc/src/math/generic/remquol.cpp b/libc/src/math/generic/remquol.cpp --- a/libc/src/math/generic/remquol.cpp +++ b/libc/src/math/generic/remquol.cpp @@ -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 { diff --git a/libc/src/math/generic/rint.cpp b/libc/src/math/generic/rint.cpp --- a/libc/src/math/generic/rint.cpp +++ b/libc/src/math/generic/rint.cpp @@ -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 { diff --git a/libc/src/math/generic/rintf.cpp b/libc/src/math/generic/rintf.cpp --- a/libc/src/math/generic/rintf.cpp +++ b/libc/src/math/generic/rintf.cpp @@ -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 { diff --git a/libc/src/math/generic/rintl.cpp b/libc/src/math/generic/rintl.cpp --- a/libc/src/math/generic/rintl.cpp +++ b/libc/src/math/generic/rintl.cpp @@ -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 { diff --git a/libc/src/math/generic/round.cpp b/libc/src/math/generic/round.cpp --- a/libc/src/math/generic/round.cpp +++ b/libc/src/math/generic/round.cpp @@ -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 { diff --git a/libc/src/math/generic/roundf.cpp b/libc/src/math/generic/roundf.cpp --- a/libc/src/math/generic/roundf.cpp +++ b/libc/src/math/generic/roundf.cpp @@ -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 { diff --git a/libc/src/math/generic/roundl.cpp b/libc/src/math/generic/roundl.cpp --- a/libc/src/math/generic/roundl.cpp +++ b/libc/src/math/generic/roundl.cpp @@ -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 { diff --git a/libc/src/math/generic/sqrt.cpp b/libc/src/math/generic/sqrt.cpp --- a/libc/src/math/generic/sqrt.cpp +++ b/libc/src/math/generic/sqrt.cpp @@ -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 { diff --git a/libc/src/math/generic/sqrtf.cpp b/libc/src/math/generic/sqrtf.cpp --- a/libc/src/math/generic/sqrtf.cpp +++ b/libc/src/math/generic/sqrtf.cpp @@ -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 { diff --git a/libc/src/math/generic/sqrtl.cpp b/libc/src/math/generic/sqrtl.cpp --- a/libc/src/math/generic/sqrtl.cpp +++ b/libc/src/math/generic/sqrtl.cpp @@ -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 { diff --git a/libc/src/math/generic/trunc.cpp b/libc/src/math/generic/trunc.cpp --- a/libc/src/math/generic/trunc.cpp +++ b/libc/src/math/generic/trunc.cpp @@ -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 { diff --git a/libc/src/math/generic/truncf.cpp b/libc/src/math/generic/truncf.cpp --- a/libc/src/math/generic/truncf.cpp +++ b/libc/src/math/generic/truncf.cpp @@ -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 { diff --git a/libc/src/math/generic/truncl.cpp b/libc/src/math/generic/truncl.cpp --- a/libc/src/math/generic/truncl.cpp +++ b/libc/src/math/generic/truncl.cpp @@ -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 { diff --git a/libc/test/src/fenv/CMakeLists.txt b/libc/test/src/fenv/CMakeLists.txt --- a/libc/test/src/fenv/CMakeLists.txt +++ b/libc/test/src/fenv/CMakeLists.txt @@ -21,7 +21,7 @@ libc.src.fenv.feclearexcept libc.src.fenv.feraiseexcept libc.src.fenv.fetestexcept - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_libc_unittest( @@ -33,7 +33,7 @@ DEPENDS libc.src.fenv.fegetenv libc.src.fenv.fesetenv - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_libc_unittest( @@ -45,7 +45,7 @@ DEPENDS libc.src.fenv.fegetexceptflag libc.src.fenv.fesetexceptflag - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_libc_unittest( @@ -57,7 +57,7 @@ DEPENDS libc.include.signal libc.src.fenv.feupdateenv - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_libc_unittest( @@ -68,7 +68,7 @@ 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"))) @@ -87,7 +87,7 @@ libc.src.fenv.feclearexcept libc.src.fenv.feraiseexcept libc.src.fenv.fetestexcept - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -99,6 +99,6 @@ DEPENDS libc.include.fenv libc.src.fenv.feholdexcept - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) endif() diff --git a/libc/test/src/fenv/enabled_exceptions_test.cpp b/libc/test/src/fenv/enabled_exceptions_test.cpp --- a/libc/test/src/fenv/enabled_exceptions_test.cpp +++ b/libc/test/src/fenv/enabled_exceptions_test.cpp @@ -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 diff --git a/libc/test/src/fenv/exception_flags_test.cpp b/libc/test/src/fenv/exception_flags_test.cpp --- a/libc/test/src/fenv/exception_flags_test.cpp +++ b/libc/test/src/fenv/exception_flags_test.cpp @@ -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 diff --git a/libc/test/src/fenv/exception_status_test.cpp b/libc/test/src/fenv/exception_status_test.cpp --- a/libc/test/src/fenv/exception_status_test.cpp +++ b/libc/test/src/fenv/exception_status_test.cpp @@ -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 diff --git a/libc/test/src/fenv/feclearexcept_test.cpp b/libc/test/src/fenv/feclearexcept_test.cpp --- a/libc/test/src/fenv/feclearexcept_test.cpp +++ b/libc/test/src/fenv/feclearexcept_test.cpp @@ -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 diff --git a/libc/test/src/fenv/feholdexcept_test.cpp b/libc/test/src/fenv/feholdexcept_test.cpp --- a/libc/test/src/fenv/feholdexcept_test.cpp +++ b/libc/test/src/fenv/feholdexcept_test.cpp @@ -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 diff --git a/libc/test/src/fenv/feupdateenv_test.cpp b/libc/test/src/fenv/feupdateenv_test.cpp --- a/libc/test/src/fenv/feupdateenv_test.cpp +++ b/libc/test/src/fenv/feupdateenv_test.cpp @@ -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 diff --git a/libc/test/src/fenv/getenv_and_setenv_test.cpp b/libc/test/src/fenv/getenv_and_setenv_test.cpp --- a/libc/test/src/fenv/getenv_and_setenv_test.cpp +++ b/libc/test/src/fenv/getenv_and_setenv_test.cpp @@ -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 diff --git a/libc/test/src/math/CMakeLists.txt b/libc/test/src/math/CMakeLists.txt --- a/libc/test/src/math/CMakeLists.txt +++ b/libc/test/src/math/CMakeLists.txt @@ -13,7 +13,7 @@ libc.include.errno libc.src.math.cosf libc.utils.CPP.standalone_cpp - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -25,7 +25,7 @@ cos_test.cpp DEPENDS libc.src.math.cos - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -41,7 +41,7 @@ libc.include.errno libc.src.math.sinf libc.utils.CPP.standalone_cpp - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -53,7 +53,7 @@ sin_test.cpp DEPENDS libc.src.math.sin - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -69,7 +69,7 @@ libc.include.errno libc.src.math.sincosf libc.utils.CPP.standalone_cpp - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -84,7 +84,7 @@ DEPENDS libc.include.math libc.src.math.fabs - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -99,7 +99,7 @@ DEPENDS libc.include.math libc.src.math.fabsf - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -114,7 +114,7 @@ DEPENDS libc.include.math libc.src.math.fabsl - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -129,7 +129,7 @@ DEPENDS libc.include.math libc.src.math.trunc - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -144,7 +144,7 @@ DEPENDS libc.include.math libc.src.math.truncf - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -159,7 +159,7 @@ DEPENDS libc.include.math libc.src.math.truncl - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -174,7 +174,7 @@ DEPENDS libc.include.math libc.src.math.ceil - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -189,7 +189,7 @@ DEPENDS libc.include.math libc.src.math.ceilf - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -204,7 +204,7 @@ DEPENDS libc.include.math libc.src.math.ceill - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -219,7 +219,7 @@ DEPENDS libc.include.math libc.src.math.floor - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -234,7 +234,7 @@ DEPENDS libc.include.math libc.src.math.floorf - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -249,7 +249,7 @@ DEPENDS libc.include.math libc.src.math.floorl - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -264,7 +264,7 @@ DEPENDS libc.include.math libc.src.math.round - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -279,7 +279,7 @@ DEPENDS libc.include.math libc.src.math.roundf - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -294,7 +294,7 @@ DEPENDS libc.include.math libc.src.math.roundl - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -314,7 +314,7 @@ libc.src.fenv.feraiseexcept libc.src.fenv.fetestexcept libc.src.math.lround - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -334,7 +334,7 @@ libc.src.fenv.feraiseexcept libc.src.fenv.fetestexcept libc.src.math.lroundf - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -354,7 +354,7 @@ libc.src.fenv.feraiseexcept libc.src.fenv.fetestexcept libc.src.math.lroundl - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -374,7 +374,7 @@ libc.src.fenv.feraiseexcept libc.src.fenv.fetestexcept libc.src.math.llround - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -394,7 +394,7 @@ libc.src.fenv.feraiseexcept libc.src.fenv.fetestexcept libc.src.math.llroundf - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -414,7 +414,7 @@ libc.src.fenv.feraiseexcept libc.src.fenv.fetestexcept libc.src.math.llroundl - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -429,7 +429,7 @@ DEPENDS libc.include.math libc.src.math.rint - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -444,7 +444,7 @@ DEPENDS libc.include.math libc.src.math.rintf - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -459,7 +459,7 @@ DEPENDS libc.include.math libc.src.math.rintl - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -474,7 +474,7 @@ DEPENDS libc.include.math libc.src.math.lrint - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -489,7 +489,7 @@ DEPENDS libc.include.math libc.src.math.lrintf - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -504,7 +504,7 @@ DEPENDS libc.include.math libc.src.math.lrintl - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -519,7 +519,7 @@ DEPENDS libc.include.math libc.src.math.llrint - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -534,7 +534,7 @@ DEPENDS libc.include.math libc.src.math.llrintf - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -549,7 +549,7 @@ DEPENDS libc.include.math libc.src.math.llrintl - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -563,7 +563,7 @@ libc.include.errno libc.include.math libc.src.math.expf - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -577,7 +577,7 @@ libc.include.errno libc.include.math libc.src.math.exp2f - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -591,7 +591,7 @@ DEPENDS libc.include.math libc.src.math.copysign - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -605,7 +605,7 @@ DEPENDS libc.include.math libc.src.math.copysignf - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -619,7 +619,7 @@ DEPENDS libc.include.math libc.src.math.copysignl - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -634,7 +634,7 @@ DEPENDS libc.include.math libc.src.math.frexp - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -649,7 +649,7 @@ DEPENDS libc.include.math libc.src.math.frexpf - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -664,7 +664,7 @@ DEPENDS libc.include.math libc.src.math.frexpl - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -678,7 +678,7 @@ DEPENDS libc.include.math libc.src.math.ilogb - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -692,7 +692,7 @@ DEPENDS libc.include.math libc.src.math.ilogbf - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -706,7 +706,7 @@ DEPENDS libc.include.math libc.src.math.ilogbl - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -720,7 +720,7 @@ DEPENDS libc.include.math libc.src.math.ldexp - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -734,7 +734,7 @@ DEPENDS libc.include.math libc.src.math.ldexpf - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -748,7 +748,7 @@ DEPENDS libc.include.math libc.src.math.ldexpl - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -760,7 +760,7 @@ DEPENDS libc.include.math libc.src.math.logb - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -772,7 +772,7 @@ DEPENDS libc.include.math libc.src.math.logbf - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -786,7 +786,7 @@ DEPENDS libc.include.math libc.src.math.logbl - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -800,7 +800,7 @@ DEPENDS libc.include.math libc.src.math.modf - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -814,7 +814,7 @@ DEPENDS libc.include.math libc.src.math.modff - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -828,7 +828,7 @@ DEPENDS libc.include.math libc.src.math.modfl - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -842,7 +842,7 @@ DEPENDS libc.include.math libc.src.math.fdimf - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -856,7 +856,7 @@ DEPENDS libc.include.math libc.src.math.fdim - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -870,7 +870,7 @@ DEPENDS libc.include.math libc.src.math.fdiml - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -884,7 +884,7 @@ DEPENDS libc.include.math libc.src.math.fminf - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -898,7 +898,7 @@ DEPENDS libc.include.math libc.src.math.fmin - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -912,7 +912,7 @@ DEPENDS libc.include.math libc.src.math.fminl - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -926,7 +926,7 @@ DEPENDS libc.include.math libc.src.math.fmaxf - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -940,7 +940,7 @@ DEPENDS libc.include.math libc.src.math.fmax - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -954,7 +954,7 @@ DEPENDS libc.include.math libc.src.math.fmaxl - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -967,7 +967,7 @@ DEPENDS libc.include.math libc.src.math.sqrtf - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -980,7 +980,7 @@ DEPENDS libc.include.math libc.src.math.sqrt - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) # The quad precision test for sqrt against MPFR currently suffers @@ -998,7 +998,7 @@ DEPENDS libc.include.math libc.src.math.sqrtl - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) else() message(STATUS "Skipping sqrtl_test") @@ -1016,7 +1016,7 @@ DEPENDS libc.include.math libc.src.math.remquof - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -1031,7 +1031,7 @@ DEPENDS libc.include.math libc.src.math.remquo - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -1046,7 +1046,7 @@ DEPENDS libc.include.math libc.src.math.remquol - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -1059,7 +1059,7 @@ DEPENDS libc.include.math libc.src.math.hypotf - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -1072,7 +1072,7 @@ DEPENDS libc.include.math libc.src.math.hypot - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -1086,7 +1086,7 @@ DEPENDS libc.include.math libc.src.math.nextafter - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -1100,7 +1100,7 @@ DEPENDS libc.include.math libc.src.math.nextafterf - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -1114,7 +1114,7 @@ DEPENDS libc.include.math libc.src.math.nextafterl - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -1127,7 +1127,7 @@ DEPENDS libc.include.math libc.src.math.fmaf - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -1140,7 +1140,7 @@ DEPENDS libc.include.math libc.src.math.fma - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -1152,7 +1152,7 @@ tan_test.cpp DEPENDS libc.src.math.tan - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -1166,7 +1166,7 @@ libc.include.errno libc.include.math libc.src.math.expm1f - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_subdirectory(generic) diff --git a/libc/test/src/math/CeilTest.h b/libc/test/src/math/CeilTest.h --- a/libc/test/src/math/CeilTest.h +++ b/libc/test/src/math/CeilTest.h @@ -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" diff --git a/libc/test/src/math/CopySignTest.h b/libc/test/src/math/CopySignTest.h --- a/libc/test/src/math/CopySignTest.h +++ b/libc/test/src/math/CopySignTest.h @@ -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" diff --git a/libc/test/src/math/FAbsTest.h b/libc/test/src/math/FAbsTest.h --- a/libc/test/src/math/FAbsTest.h +++ b/libc/test/src/math/FAbsTest.h @@ -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" diff --git a/libc/test/src/math/FDimTest.h b/libc/test/src/math/FDimTest.h --- a/libc/test/src/math/FDimTest.h +++ b/libc/test/src/math/FDimTest.h @@ -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 diff --git a/libc/test/src/math/FMaxTest.h b/libc/test/src/math/FMaxTest.h --- a/libc/test/src/math/FMaxTest.h +++ b/libc/test/src/math/FMaxTest.h @@ -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" diff --git a/libc/test/src/math/FMinTest.h b/libc/test/src/math/FMinTest.h --- a/libc/test/src/math/FMinTest.h +++ b/libc/test/src/math/FMinTest.h @@ -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" diff --git a/libc/test/src/math/FloorTest.h b/libc/test/src/math/FloorTest.h --- a/libc/test/src/math/FloorTest.h +++ b/libc/test/src/math/FloorTest.h @@ -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" diff --git a/libc/test/src/math/FmaTest.h b/libc/test/src/math/FmaTest.h --- a/libc/test/src/math/FmaTest.h +++ b/libc/test/src/math/FmaTest.h @@ -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" diff --git a/libc/test/src/math/FrexpTest.h b/libc/test/src/math/FrexpTest.h --- a/libc/test/src/math/FrexpTest.h +++ b/libc/test/src/math/FrexpTest.h @@ -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" diff --git a/libc/test/src/math/HypotTest.h b/libc/test/src/math/HypotTest.h --- a/libc/test/src/math/HypotTest.h +++ b/libc/test/src/math/HypotTest.h @@ -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" diff --git a/libc/test/src/math/ILogbTest.h b/libc/test/src/math/ILogbTest.h --- a/libc/test/src/math/ILogbTest.h +++ b/libc/test/src/math/ILogbTest.h @@ -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 diff --git a/libc/test/src/math/LdExpTest.h b/libc/test/src/math/LdExpTest.h --- a/libc/test/src/math/LdExpTest.h +++ b/libc/test/src/math/LdExpTest.h @@ -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 diff --git a/libc/test/src/math/LogbTest.h b/libc/test/src/math/LogbTest.h --- a/libc/test/src/math/LogbTest.h +++ b/libc/test/src/math/LogbTest.h @@ -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" diff --git a/libc/test/src/math/ModfTest.h b/libc/test/src/math/ModfTest.h --- a/libc/test/src/math/ModfTest.h +++ b/libc/test/src/math/ModfTest.h @@ -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" diff --git a/libc/test/src/math/NextAfterTest.h b/libc/test/src/math/NextAfterTest.h --- a/libc/test/src/math/NextAfterTest.h +++ b/libc/test/src/math/NextAfterTest.h @@ -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 diff --git a/libc/test/src/math/RIntTest.h b/libc/test/src/math/RIntTest.h --- a/libc/test/src/math/RIntTest.h +++ b/libc/test/src/math/RIntTest.h @@ -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" diff --git a/libc/test/src/math/RemQuoTest.h b/libc/test/src/math/RemQuoTest.h --- a/libc/test/src/math/RemQuoTest.h +++ b/libc/test/src/math/RemQuoTest.h @@ -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 diff --git a/libc/test/src/math/RoundTest.h b/libc/test/src/math/RoundTest.h --- a/libc/test/src/math/RoundTest.h +++ b/libc/test/src/math/RoundTest.h @@ -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" diff --git a/libc/test/src/math/RoundToIntegerTest.h b/libc/test/src/math/RoundToIntegerTest.h --- a/libc/test/src/math/RoundToIntegerTest.h +++ b/libc/test/src/math/RoundToIntegerTest.h @@ -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" @@ -18,7 +18,7 @@ #include #endif #if math_errhandling & MATH_ERREXCEPT -#include "utils/FPUtil/FEnvUtils.h" +#include "src/__support/FPUtil/FEnvUtils.h" #endif namespace mpfr = __llvm_libc::testing::mpfr; diff --git a/libc/test/src/math/SqrtTest.h b/libc/test/src/math/SqrtTest.h --- a/libc/test/src/math/SqrtTest.h +++ b/libc/test/src/math/SqrtTest.h @@ -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" diff --git a/libc/test/src/math/TruncTest.h b/libc/test/src/math/TruncTest.h --- a/libc/test/src/math/TruncTest.h +++ b/libc/test/src/math/TruncTest.h @@ -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" diff --git a/libc/test/src/math/cos_test.cpp b/libc/test/src/math/cos_test.cpp --- a/libc/test/src/math/cos_test.cpp +++ b/libc/test/src/math/cos_test.cpp @@ -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" diff --git a/libc/test/src/math/cosf_test.cpp b/libc/test/src/math/cosf_test.cpp --- a/libc/test/src/math/cosf_test.cpp +++ b/libc/test/src/math/cosf_test.cpp @@ -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 diff --git a/libc/test/src/math/differential_testing/CMakeLists.txt b/libc/test/src/math/differential_testing/CMakeLists.txt --- a/libc/test/src/math/differential_testing/CMakeLists.txt +++ b/libc/test/src/math/differential_testing/CMakeLists.txt @@ -56,7 +56,7 @@ add_dependencies( ${fq_target_name} - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ${fq_deps_list} ) endfunction() diff --git a/libc/test/src/math/differential_testing/SingleInputSingleOutputDiff.h b/libc/test/src/math/differential_testing/SingleInputSingleOutputDiff.h --- a/libc/test/src/math/differential_testing/SingleInputSingleOutputDiff.h +++ b/libc/test/src/math/differential_testing/SingleInputSingleOutputDiff.h @@ -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" diff --git a/libc/test/src/math/exhaustive/CMakeLists.txt b/libc/test/src/math/exhaustive/CMakeLists.txt --- a/libc/test/src/math/exhaustive/CMakeLists.txt +++ b/libc/test/src/math/exhaustive/CMakeLists.txt @@ -10,7 +10,7 @@ DEPENDS libc.include.math libc.src.math.sqrtf - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -23,7 +23,7 @@ DEPENDS libc.include.math libc.src.math.sinf - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -36,7 +36,7 @@ DEPENDS libc.include.math libc.src.math.cosf - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -49,5 +49,5 @@ DEPENDS libc.include.math libc.src.math.expm1f - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) diff --git a/libc/test/src/math/exhaustive/cosf_test.cpp b/libc/test/src/math/exhaustive/cosf_test.cpp --- a/libc/test/src/math/exhaustive/cosf_test.cpp +++ b/libc/test/src/math/exhaustive/cosf_test.cpp @@ -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 diff --git a/libc/test/src/math/exhaustive/expm1f_test.cpp b/libc/test/src/math/exhaustive/expm1f_test.cpp --- a/libc/test/src/math/exhaustive/expm1f_test.cpp +++ b/libc/test/src/math/exhaustive/expm1f_test.cpp @@ -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 diff --git a/libc/test/src/math/exhaustive/sinf_test.cpp b/libc/test/src/math/exhaustive/sinf_test.cpp --- a/libc/test/src/math/exhaustive/sinf_test.cpp +++ b/libc/test/src/math/exhaustive/sinf_test.cpp @@ -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 diff --git a/libc/test/src/math/exhaustive/sqrtf_test.cpp b/libc/test/src/math/exhaustive/sqrtf_test.cpp --- a/libc/test/src/math/exhaustive/sqrtf_test.cpp +++ b/libc/test/src/math/exhaustive/sqrtf_test.cpp @@ -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 diff --git a/libc/test/src/math/exp2f_test.cpp b/libc/test/src/math/exp2f_test.cpp --- a/libc/test/src/math/exp2f_test.cpp +++ b/libc/test/src/math/exp2f_test.cpp @@ -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 diff --git a/libc/test/src/math/expf_test.cpp b/libc/test/src/math/expf_test.cpp --- a/libc/test/src/math/expf_test.cpp +++ b/libc/test/src/math/expf_test.cpp @@ -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 diff --git a/libc/test/src/math/expm1f_test.cpp b/libc/test/src/math/expm1f_test.cpp --- a/libc/test/src/math/expm1f_test.cpp +++ b/libc/test/src/math/expm1f_test.cpp @@ -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 diff --git a/libc/test/src/math/fdim_test.cpp b/libc/test/src/math/fdim_test.cpp --- a/libc/test/src/math/fdim_test.cpp +++ b/libc/test/src/math/fdim_test.cpp @@ -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 diff --git a/libc/test/src/math/fdimf_test.cpp b/libc/test/src/math/fdimf_test.cpp --- a/libc/test/src/math/fdimf_test.cpp +++ b/libc/test/src/math/fdimf_test.cpp @@ -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 diff --git a/libc/test/src/math/fdiml_test.cpp b/libc/test/src/math/fdiml_test.cpp --- a/libc/test/src/math/fdiml_test.cpp +++ b/libc/test/src/math/fdiml_test.cpp @@ -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 diff --git a/libc/test/src/math/generic/CMakeLists.txt b/libc/test/src/math/generic/CMakeLists.txt --- a/libc/test/src/math/generic/CMakeLists.txt +++ b/libc/test/src/math/generic/CMakeLists.txt @@ -8,7 +8,7 @@ DEPENDS libc.include.math libc.src.math.generic.ceil - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -21,7 +21,7 @@ DEPENDS libc.include.math libc.src.math.generic.ceilf - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) add_fp_unittest( @@ -34,6 +34,6 @@ DEPENDS libc.include.math libc.src.math.generic.ceill - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) diff --git a/libc/test/src/math/ilogb_test.cpp b/libc/test/src/math/ilogb_test.cpp --- a/libc/test/src/math/ilogb_test.cpp +++ b/libc/test/src/math/ilogb_test.cpp @@ -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 diff --git a/libc/test/src/math/ilogbf_test.cpp b/libc/test/src/math/ilogbf_test.cpp --- a/libc/test/src/math/ilogbf_test.cpp +++ b/libc/test/src/math/ilogbf_test.cpp @@ -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 diff --git a/libc/test/src/math/ilogbl_test.cpp b/libc/test/src/math/ilogbl_test.cpp --- a/libc/test/src/math/ilogbl_test.cpp +++ b/libc/test/src/math/ilogbl_test.cpp @@ -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 diff --git a/libc/test/src/math/sin_test.cpp b/libc/test/src/math/sin_test.cpp --- a/libc/test/src/math/sin_test.cpp +++ b/libc/test/src/math/sin_test.cpp @@ -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" diff --git a/libc/test/src/math/sincosf_test.cpp b/libc/test/src/math/sincosf_test.cpp --- a/libc/test/src/math/sincosf_test.cpp +++ b/libc/test/src/math/sincosf_test.cpp @@ -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 diff --git a/libc/test/src/math/sinf_test.cpp b/libc/test/src/math/sinf_test.cpp --- a/libc/test/src/math/sinf_test.cpp +++ b/libc/test/src/math/sinf_test.cpp @@ -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 diff --git a/libc/test/src/math/tan_test.cpp b/libc/test/src/math/tan_test.cpp --- a/libc/test/src/math/tan_test.cpp +++ b/libc/test/src/math/tan_test.cpp @@ -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" diff --git a/libc/test/utils/FPUtil/CMakeLists.txt b/libc/test/utils/FPUtil/CMakeLists.txt --- a/libc/test/utils/FPUtil/CMakeLists.txt +++ b/libc/test/utils/FPUtil/CMakeLists.txt @@ -5,6 +5,6 @@ x86_long_double_test.cpp DEPENDS libc.include.math - libc.utils.FPUtil.fputil + libc.src.__support.FPUtil.fputil ) endif() diff --git a/libc/test/utils/FPUtil/x86_long_double_test.cpp b/libc/test/utils/FPUtil/x86_long_double_test.cpp --- a/libc/test/utils/FPUtil/x86_long_double_test.cpp +++ b/libc/test/utils/FPUtil/x86_long_double_test.cpp @@ -6,7 +6,7 @@ // //===----------------------------------------------------------------------===// -#include "utils/FPUtil/FPBits.h" +#include "src/__support/FPUtil/FPBits.h" #include "utils/UnitTest/Test.h" #include diff --git a/libc/utils/CMakeLists.txt b/libc/utils/CMakeLists.txt --- a/libc/utils/CMakeLists.txt +++ b/libc/utils/CMakeLists.txt @@ -1,5 +1,4 @@ add_subdirectory(CPP) -add_subdirectory(FPUtil) add_subdirectory(MPFRWrapper) add_subdirectory(testutils) add_subdirectory(UnitTest) diff --git a/libc/utils/MPFRWrapper/CMakeLists.txt b/libc/utils/MPFRWrapper/CMakeLists.txt --- a/libc/utils/MPFRWrapper/CMakeLists.txt +++ b/libc/utils/MPFRWrapper/CMakeLists.txt @@ -3,7 +3,7 @@ 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) diff --git a/libc/utils/MPFRWrapper/MPFRUtils.cpp b/libc/utils/MPFRWrapper/MPFRUtils.cpp --- a/libc/utils/MPFRWrapper/MPFRUtils.cpp +++ b/libc/utils/MPFRWrapper/MPFRUtils.cpp @@ -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 #include