diff --git a/libc/src/__support/FPUtil/CMakeLists.txt b/libc/src/__support/FPUtil/CMakeLists.txt --- a/libc/src/__support/FPUtil/CMakeLists.txt +++ b/libc/src/__support/FPUtil/CMakeLists.txt @@ -4,7 +4,6 @@ FEnvImpl.h BasicOperations.h DivisionAndRemainderOperations.h - FEnvUtils.h FloatProperties.h FPBits.h BasicOperations.h diff --git a/libc/src/__support/FPUtil/FEnvImpl.h b/libc/src/__support/FPUtil/FEnvImpl.h --- a/libc/src/__support/FPUtil/FEnvImpl.h +++ b/libc/src/__support/FPUtil/FEnvImpl.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_DUMMY_FENVIMPL_H -#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_DUMMY_FENVIMPL_H +#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_FENVIMPL_H +#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_FENVIMPL_H #include "src/__support/architectures.h" @@ -44,4 +44,4 @@ } // namespace __llvm_libc #endif -#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_DUMMY_FENVIMPL_H +#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_FENVIMPL_H diff --git a/libc/src/__support/FPUtil/FEnvUtils.h b/libc/src/__support/FPUtil/FEnvUtils.h deleted file mode 100644 --- a/libc/src/__support/FPUtil/FEnvUtils.h +++ /dev/null @@ -1,22 +0,0 @@ -//===-- Utilities for manipulating floating point environment ---*- C++ -*-===// -// -// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -// See https://llvm.org/LICENSE.txt for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_FENVUTILS_H -#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_FENVUTILS_H - -#include "src/__support/architectures.h" - -#if defined(LLVM_LIBC_ARCH_X86_64) -#include "x86_64/FEnvImpl.h" -#elif defined(LLVM_LIBC_ARCH_AARCH64) -#include "aarch64/FEnvImpl.h" -#else -#include "DummyFEnvImpl.h" -#endif - -#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_FENVUTILS_H diff --git a/libc/src/__support/FPUtil/NearestIntegerOperations.h b/libc/src/__support/FPUtil/NearestIntegerOperations.h --- a/libc/src/__support/FPUtil/NearestIntegerOperations.h +++ b/libc/src/__support/FPUtil/NearestIntegerOperations.h @@ -9,7 +9,7 @@ #ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_NEAREST_INTEGER_OPERATIONS_H #define LLVM_LIBC_SRC_SUPPORT_FPUTIL_NEAREST_INTEGER_OPERATIONS_H -#include "FEnvUtils.h" +#include "FEnvImpl.h" #include "FPBits.h" #include "src/__support/CPP/TypeTraits.h" 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,7 +7,7 @@ //===----------------------------------------------------------------------===// #include "src/fenv/feclearexcept.h" -#include "src/__support/FPUtil/FEnvUtils.h" +#include "src/__support/FPUtil/FEnvImpl.h" #include "src/__support/common.h" namespace __llvm_libc { diff --git a/libc/src/fenv/fedisableexcept.cpp b/libc/src/fenv/fedisableexcept.cpp --- a/libc/src/fenv/fedisableexcept.cpp +++ b/libc/src/fenv/fedisableexcept.cpp @@ -7,7 +7,7 @@ //===----------------------------------------------------------------------===// #include "src/fenv/fedisableexcept.h" -#include "src/__support/FPUtil/FEnvUtils.h" +#include "src/__support/FPUtil/FEnvImpl.h" #include "src/__support/common.h" namespace __llvm_libc { diff --git a/libc/src/fenv/feenableexcept.cpp b/libc/src/fenv/feenableexcept.cpp --- a/libc/src/fenv/feenableexcept.cpp +++ b/libc/src/fenv/feenableexcept.cpp @@ -7,7 +7,7 @@ //===----------------------------------------------------------------------===// #include "src/fenv/feenableexcept.h" -#include "src/__support/FPUtil/FEnvUtils.h" +#include "src/__support/FPUtil/FEnvImpl.h" #include "src/__support/common.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,7 +7,7 @@ //===----------------------------------------------------------------------===// #include "src/fenv/fegetenv.h" -#include "src/__support/FPUtil/FEnvUtils.h" +#include "src/__support/FPUtil/FEnvImpl.h" #include "src/__support/common.h" namespace __llvm_libc { diff --git a/libc/src/fenv/fegetexcept.cpp b/libc/src/fenv/fegetexcept.cpp --- a/libc/src/fenv/fegetexcept.cpp +++ b/libc/src/fenv/fegetexcept.cpp @@ -7,7 +7,7 @@ //===----------------------------------------------------------------------===// #include "src/fenv/fegetexcept.h" -#include "src/__support/FPUtil/FEnvUtils.h" +#include "src/__support/FPUtil/FEnvImpl.h" #include "src/__support/common.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,7 +7,7 @@ //===----------------------------------------------------------------------===// #include "src/fenv/fegetexceptflag.h" -#include "src/__support/FPUtil/FEnvUtils.h" +#include "src/__support/FPUtil/FEnvImpl.h" #include "src/__support/common.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,7 +7,7 @@ //===----------------------------------------------------------------------===// #include "src/fenv/fegetround.h" -#include "src/__support/FPUtil/FEnvUtils.h" +#include "src/__support/FPUtil/FEnvImpl.h" #include "src/__support/common.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,7 +7,7 @@ //===----------------------------------------------------------------------===// #include "src/fenv/feholdexcept.h" -#include "src/__support/FPUtil/FEnvUtils.h" +#include "src/__support/FPUtil/FEnvImpl.h" #include "src/__support/common.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,7 +7,7 @@ //===----------------------------------------------------------------------===// #include "src/fenv/feraiseexcept.h" -#include "src/__support/FPUtil/FEnvUtils.h" +#include "src/__support/FPUtil/FEnvImpl.h" #include "src/__support/common.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,7 +7,7 @@ //===----------------------------------------------------------------------===// #include "src/fenv/fesetenv.h" -#include "src/__support/FPUtil/FEnvUtils.h" +#include "src/__support/FPUtil/FEnvImpl.h" #include "src/__support/common.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,7 +7,7 @@ //===----------------------------------------------------------------------===// #include "src/fenv/fesetexceptflag.h" -#include "src/__support/FPUtil/FEnvUtils.h" +#include "src/__support/FPUtil/FEnvImpl.h" #include "src/__support/common.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,7 +7,7 @@ //===----------------------------------------------------------------------===// #include "src/fenv/fesetround.h" -#include "src/__support/FPUtil/FEnvUtils.h" +#include "src/__support/FPUtil/FEnvImpl.h" #include "src/__support/common.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,7 +7,7 @@ //===----------------------------------------------------------------------===// #include "src/fenv/fetestexcept.h" -#include "src/__support/FPUtil/FEnvUtils.h" +#include "src/__support/FPUtil/FEnvImpl.h" #include "src/__support/common.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,7 +7,7 @@ //===----------------------------------------------------------------------===// #include "src/fenv/feupdateenv.h" -#include "src/__support/FPUtil/FEnvUtils.h" +#include "src/__support/FPUtil/FEnvImpl.h" #include "src/__support/common.h" #include diff --git a/libc/src/math/generic/log10f.cpp b/libc/src/math/generic/log10f.cpp --- a/libc/src/math/generic/log10f.cpp +++ b/libc/src/math/generic/log10f.cpp @@ -9,7 +9,7 @@ #include "src/math/log10f.h" #include "common_constants.h" // Lookup table for (1/f) #include "src/__support/FPUtil/BasicOperations.h" -#include "src/__support/FPUtil/FEnvUtils.h" +#include "src/__support/FPUtil/FEnvImpl.h" #include "src/__support/FPUtil/FMA.h" #include "src/__support/FPUtil/FPBits.h" #include "src/__support/FPUtil/PolyEval.h" diff --git a/libc/src/math/generic/log1pf.cpp b/libc/src/math/generic/log1pf.cpp --- a/libc/src/math/generic/log1pf.cpp +++ b/libc/src/math/generic/log1pf.cpp @@ -9,7 +9,7 @@ #include "src/math/log1pf.h" #include "common_constants.h" // Lookup table for (1/f) and log(f) #include "src/__support/FPUtil/BasicOperations.h" -#include "src/__support/FPUtil/FEnvUtils.h" +#include "src/__support/FPUtil/FEnvImpl.h" #include "src/__support/FPUtil/FMA.h" #include "src/__support/FPUtil/FPBits.h" #include "src/__support/FPUtil/PolyEval.h" diff --git a/libc/src/math/generic/log2f.cpp b/libc/src/math/generic/log2f.cpp --- a/libc/src/math/generic/log2f.cpp +++ b/libc/src/math/generic/log2f.cpp @@ -9,7 +9,7 @@ #include "src/math/log2f.h" #include "common_constants.h" // Lookup table for (1/f) #include "src/__support/FPUtil/BasicOperations.h" -#include "src/__support/FPUtil/FEnvUtils.h" +#include "src/__support/FPUtil/FEnvImpl.h" #include "src/__support/FPUtil/FMA.h" #include "src/__support/FPUtil/FPBits.h" #include "src/__support/FPUtil/PolyEval.h" 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,7 +10,7 @@ #include "src/fenv/feraiseexcept.h" #include "src/fenv/fetestexcept.h" -#include "src/__support/FPUtil/FEnvUtils.h" +#include "src/__support/FPUtil/FEnvImpl.h" #include "src/__support/architectures.h" #include "utils/UnitTest/FPExceptMatcher.h" #include "utils/UnitTest/Test.h" 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 "src/__support/FPUtil/FEnvUtils.h" +#include "src/__support/FPUtil/FEnvImpl.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 "src/__support/FPUtil/FEnvUtils.h" +#include "src/__support/FPUtil/FEnvImpl.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 "src/__support/FPUtil/FEnvUtils.h" +#include "src/__support/FPUtil/FEnvImpl.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,7 +8,7 @@ #include "src/fenv/feholdexcept.h" -#include "src/__support/FPUtil/FEnvUtils.h" +#include "src/__support/FPUtil/FEnvImpl.h" #include "src/__support/architectures.h" #include "utils/UnitTest/FPExceptMatcher.h" #include "utils/UnitTest/Test.h" 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 "src/__support/FPUtil/FEnvUtils.h" +#include "src/__support/FPUtil/FEnvImpl.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 @@ -11,7 +11,7 @@ #include "src/fenv/fesetenv.h" #include "src/fenv/fesetround.h" -#include "src/__support/FPUtil/FEnvUtils.h" +#include "src/__support/FPUtil/FEnvImpl.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,7 +9,7 @@ #ifndef LLVM_LIBC_TEST_SRC_MATH_RINTTEST_H #define LLVM_LIBC_TEST_SRC_MATH_RINTTEST_H -#include "src/__support/FPUtil/FEnvUtils.h" +#include "src/__support/FPUtil/FEnvImpl.h" #include "src/__support/FPUtil/FPBits.h" #include "utils/MPFRWrapper/MPFRUtils.h" #include "utils/UnitTest/FPMatcher.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 @@ -18,7 +18,7 @@ #include #endif #if math_errhandling & MATH_ERREXCEPT -#include "src/__support/FPUtil/FEnvUtils.h" +#include "src/__support/FPUtil/FEnvImpl.h" #endif namespace mpfr = __llvm_libc::testing::mpfr;