[libc][NFC][Obvious] Remove few unnecessary #include directives in tests.
authorSiva Chandra Reddy <sivachandra@google.com>
Wed, 16 Dec 2020 05:40:40 +0000 (21:40 -0800)
committerSiva Chandra Reddy <sivachandra@google.com>
Wed, 16 Dec 2020 05:41:44 +0000 (21:41 -0800)
15 files changed:
libc/test/src/math/HypotTest.h
libc/test/src/math/RoundToIntegerTest.h
libc/test/src/math/hypot_test.cpp
libc/test/src/math/hypotf_test.cpp
libc/test/src/math/ldexp_test.cpp
libc/test/src/math/ldexpf_test.cpp
libc/test/src/math/ldexpl_test.cpp
libc/test/src/math/llround_test.cpp
libc/test/src/math/llroundf_test.cpp
libc/test/src/math/llroundl_test.cpp
libc/test/src/math/lround_test.cpp
libc/test/src/math/lroundf_test.cpp
libc/test/src/math/lroundl_test.cpp
libc/test/utils/FPUtil/x86_long_double_test.cpp
libc/utils/FPUtil/ManipulationFunctions.h

index f90807b..34b1ff6 100644 (file)
@@ -9,13 +9,14 @@
 #ifndef LLVM_LIBC_TEST_SRC_MATH_HYPOTTEST_H
 #define LLVM_LIBC_TEST_SRC_MATH_HYPOTTEST_H
 
-#include "include/math.h"
 #include "utils/FPUtil/FPBits.h"
 #include "utils/FPUtil/Hypot.h"
 #include "utils/FPUtil/TestHelpers.h"
 #include "utils/MPFRWrapper/MPFRUtils.h"
 #include "utils/UnitTest/Test.h"
 
+#include <math.h>
+
 namespace mpfr = __llvm_libc::testing::mpfr;
 
 template <typename T>
index 7c0605e..37b42f3 100644 (file)
@@ -13,7 +13,6 @@
 #include "src/fenv/feclearexcept.h"
 #include "src/fenv/feraiseexcept.h"
 #include "src/fenv/fetestexcept.h"
-#include "utils/CPP/TypeTraits.h"
 #include "utils/FPUtil/FPBits.h"
 #include "utils/MPFRWrapper/MPFRUtils.h"
 #include "utils/UnitTest/Test.h"
index d723f52..0607dbd 100644 (file)
@@ -8,7 +8,6 @@
 
 #include "HypotTest.h"
 
-#include "include/math.h"
 #include "src/math/hypot.h"
 
 using HypotTest = HypotTestTemplate<double>;
index 21d1bea..864e566 100644 (file)
@@ -8,7 +8,6 @@
 
 #include "HypotTest.h"
 
-#include "include/math.h"
 #include "src/math/hypotf.h"
 
 using HypotfTest = HypotTestTemplate<float>;
index 0f5974c..c078aa4 100644 (file)
@@ -8,14 +8,6 @@
 
 #include "LdExpTest.h"
 
-#include "include/math.h"
 #include "src/math/ldexp.h"
-#include "utils/CPP/Functional.h"
-#include "utils/FPUtil/FPBits.h"
-#include "utils/FPUtil/ManipulationFunctions.h"
-#include "utils/FPUtil/TestHelpers.h"
-#include "utils/UnitTest/Test.h"
-
-#include <limits.h>
 
 LIST_LDEXP_TESTS(double, __llvm_libc::ldexp)
index d9a44b3..4fe80fc 100644 (file)
@@ -8,14 +8,6 @@
 
 #include "LdExpTest.h"
 
-#include "include/math.h"
 #include "src/math/ldexpf.h"
-#include "utils/CPP/Functional.h"
-#include "utils/FPUtil/FPBits.h"
-#include "utils/FPUtil/ManipulationFunctions.h"
-#include "utils/FPUtil/TestHelpers.h"
-#include "utils/UnitTest/Test.h"
-
-#include <limits.h>
 
 LIST_LDEXP_TESTS(float, __llvm_libc::ldexpf)
index 69444b6..5e6e6e7 100644 (file)
@@ -8,14 +8,6 @@
 
 #include "LdExpTest.h"
 
-#include "include/math.h"
 #include "src/math/ldexpl.h"
-#include "utils/CPP/Functional.h"
-#include "utils/FPUtil/FPBits.h"
-#include "utils/FPUtil/ManipulationFunctions.h"
-#include "utils/FPUtil/TestHelpers.h"
-#include "utils/UnitTest/Test.h"
-
-#include <limits.h>
 
 LIST_LDEXP_TESTS(long double, __llvm_libc::ldexpl)
index e7d5b90..c86095d 100644 (file)
@@ -8,7 +8,6 @@
 
 #include "RoundToIntegerTest.h"
 
-#include "include/math.h"
 #include "src/math/llround.h"
 
 LIST_ROUND_TO_INTEGER_TESTS(double, long long, __llvm_libc::llround)
index 35644a7..5e36258 100644 (file)
@@ -8,7 +8,6 @@
 
 #include "RoundToIntegerTest.h"
 
-#include "include/math.h"
 #include "src/math/llroundf.h"
 
 LIST_ROUND_TO_INTEGER_TESTS(float, long long, __llvm_libc::llroundf)
index 9f19c35..8fbc840 100644 (file)
@@ -8,7 +8,6 @@
 
 #include "RoundToIntegerTest.h"
 
-#include "include/math.h"
 #include "src/math/llroundl.h"
 
 LIST_ROUND_TO_INTEGER_TESTS(long double, long long, __llvm_libc::llroundl)
index 96634f8..0ee580f 100644 (file)
@@ -8,7 +8,6 @@
 
 #include "RoundToIntegerTest.h"
 
-#include "include/math.h"
 #include "src/math/lround.h"
 
 LIST_ROUND_TO_INTEGER_TESTS(double, long, __llvm_libc::lround)
index 9df4273..7a2aad2 100644 (file)
@@ -8,7 +8,6 @@
 
 #include "RoundToIntegerTest.h"
 
-#include "include/math.h"
 #include "src/math/lroundf.h"
 
 LIST_ROUND_TO_INTEGER_TESTS(float, long, __llvm_libc::lroundf)
index 27429a8..c0ea339 100644 (file)
@@ -8,7 +8,6 @@
 
 #include "RoundToIntegerTest.h"
 
-#include "include/math.h"
 #include "src/math/lroundl.h"
 
 LIST_ROUND_TO_INTEGER_TESTS(long double, long, __llvm_libc::lroundl)
index d4fb870..ff64464 100644 (file)
@@ -6,10 +6,11 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "include/math.h"
 #include "utils/FPUtil/FPBits.h"
 #include "utils/UnitTest/Test.h"
 
+#include <math.h>
+
 using FPBits = __llvm_libc::fputil::FPBits<long double>;
 
 TEST(X86LongDoubleTest, isNaN) {
index 2bac1b5..79dc741 100644 (file)
 #include "NearestIntegerOperations.h"
 #include "NormalFloat.h"
 
-#include "include/math.h"
 #include "utils/CPP/TypeTraits.h"
 
 #include <limits.h>
+#include <math.h>
 
 namespace __llvm_libc {
 namespace fputil {