[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 f90807b62c5f57a23f62636580e9d2b4f28bae34..34b1ff6a08b6f66ccae65a5dd00245e98f9f7d42 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 7c0605ebcadd1bf95c673460ec58dff3142799e8..37b42f3852478e63925a0f192bb579b9472933c4 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 d723f5264afca1a3d05d2f8ed19c566d5938261f..0607dbdcb6ebd2349f626c622029d8aadb1a3998 100644 (file)
@@ -8,7 +8,6 @@
 
 #include "HypotTest.h"
 
-#include "include/math.h"
 #include "src/math/hypot.h"
 
 using HypotTest = HypotTestTemplate<double>;
index 21d1bea032913386982de66a8c36be418e2f8bba..864e56602d27f508c3b95d5f28ff10776bb8d1f9 100644 (file)
@@ -8,7 +8,6 @@
 
 #include "HypotTest.h"
 
-#include "include/math.h"
 #include "src/math/hypotf.h"
 
 using HypotfTest = HypotTestTemplate<float>;
index 0f5974c018f76d79140baea5a192be4cb146ed94..c078aa4b7ef84c714dd8d5e6dced446c105f9b60 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 d9a44b3f4125cb418528ba928d039033536d0e96..4fe80fc79151cd6bf43876579c65429be46f469f 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 69444b6edbaf2bbb3e981bd61a720b375d8e6b0a..5e6e6e75ae0855b3f48bbb27f87c68aa06af398f 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 e7d5b90066217b80cf51f81fd0c2b093a5b0df9d..c86095dc9aae03b5644b83c4decb46c639125850 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 35644a7a68291dbc6ca0864a395958578c751479..5e36258c246ae13c2283d2d8dccf43da26d46626 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 9f19c3516c32e32455c0fd7757b6fdf9072e25dc..8fbc840c4f2acc7d885379b00766d0bc5577d6e5 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 96634f84c1a89ef01ba673c17cdda470901ebc2a..0ee580f316b44ac4a0e768535514b95dfc6c2fb0 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 9df427386cb0acb2cd1488e4f14584157e05e00c..7a2aad20e4f664bd6e9f71e94b814cae0198b3c8 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 27429a83ee7b9ef072f274ed4f5b96585bab99fc..c0ea339782052360f2602d7940611d938e3ea07b 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 d4fb8707f2bf24457bf9e80c4b9030e4320deca9..ff644646e12f0b1367aae76c2823110ac4233284 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 2bac1b5c229fc96d14db95d72eefc997d2f83244..79dc741ff629a5bb4ee00662909177b4f4207582 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 {