[libc-commits] [libc] b02ca09 - [libc][NFC] add includes for internal headers to all libc functions
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Fri Jan 8 16:40:30 PST 2021
Author: Michael Jones
Date: 2021-01-09T00:39:18Z
New Revision: b02ca0969ea3f8147ae74d08e131f1bfe4f203d2
URL: https://github.com/llvm/llvm-project/commit/b02ca0969ea3f8147ae74d08e131f1bfe4f203d2
DIFF: https://github.com/llvm/llvm-project/commit/b02ca0969ea3f8147ae74d08e131f1bfe4f203d2.diff
LOG: [libc][NFC] add includes for internal headers to all libc functions
this will make sure that all of the functions are using the correct
prototypes. Explained much better in the comments of this diff:
https://reviews.llvm.org/D94195
Added:
Modified:
libc/src/__support/common.h.def
libc/src/fenv/feclearexcept.cpp
libc/src/fenv/fegetround.cpp
libc/src/fenv/feraiseexcept.cpp
libc/src/fenv/fesetround.cpp
libc/src/fenv/fetestexcept.cpp
libc/src/math/ceil.cpp
libc/src/math/ceilf.cpp
libc/src/math/ceill.cpp
libc/src/math/copysign.cpp
libc/src/math/copysignf.cpp
libc/src/math/copysignl.cpp
libc/src/math/cosf.cpp
libc/src/math/exp2f.cpp
libc/src/math/exp_utils.cpp
libc/src/math/expf.cpp
libc/src/math/fabs.cpp
libc/src/math/fabsf.cpp
libc/src/math/fabsl.cpp
libc/src/math/fdim.cpp
libc/src/math/fdimf.cpp
libc/src/math/fdiml.cpp
libc/src/math/floor.cpp
libc/src/math/floorf.cpp
libc/src/math/floorl.cpp
libc/src/math/fmaf.cpp
libc/src/math/fmax.cpp
libc/src/math/fmaxf.cpp
libc/src/math/fmaxl.cpp
libc/src/math/fmin.cpp
libc/src/math/fminf.cpp
libc/src/math/fminl.cpp
libc/src/math/frexp.cpp
libc/src/math/frexpf.cpp
libc/src/math/frexpl.cpp
libc/src/math/hypot.cpp
libc/src/math/hypotf.cpp
libc/src/math/ilogb.cpp
libc/src/math/ilogbf.cpp
libc/src/math/ilogbl.cpp
libc/src/math/ldexp.cpp
libc/src/math/ldexpf.cpp
libc/src/math/ldexpl.cpp
libc/src/math/llrint.cpp
libc/src/math/llrintf.cpp
libc/src/math/llrintl.cpp
libc/src/math/llround.cpp
libc/src/math/llroundf.cpp
libc/src/math/llroundl.cpp
libc/src/math/logb.cpp
libc/src/math/logbf.cpp
libc/src/math/logbl.cpp
libc/src/math/lrint.cpp
libc/src/math/lrintf.cpp
libc/src/math/lrintl.cpp
libc/src/math/lround.cpp
libc/src/math/lroundf.cpp
libc/src/math/lroundl.cpp
libc/src/math/math_utils.cpp
libc/src/math/modf.cpp
libc/src/math/modff.cpp
libc/src/math/modfl.cpp
libc/src/math/nearbyint.cpp
libc/src/math/nearbyintf.cpp
libc/src/math/nearbyintl.cpp
libc/src/math/nextafter.cpp
libc/src/math/nextafterf.cpp
libc/src/math/nextafterl.cpp
libc/src/math/remainder.cpp
libc/src/math/remainderf.cpp
libc/src/math/remainderl.cpp
libc/src/math/remquo.cpp
libc/src/math/remquof.cpp
libc/src/math/remquol.cpp
libc/src/math/rint.cpp
libc/src/math/rintf.cpp
libc/src/math/rintl.cpp
libc/src/math/round.cpp
libc/src/math/roundf.cpp
libc/src/math/roundl.cpp
libc/src/math/sincosf.cpp
libc/src/math/sinf.cpp
libc/src/math/sqrt.cpp
libc/src/math/sqrtf.cpp
libc/src/math/sqrtl.cpp
libc/src/math/trunc.cpp
libc/src/math/truncf.cpp
libc/src/math/truncl.cpp
libc/src/threads/linux/call_once.cpp
libc/src/threads/linux/mtx_init.cpp
libc/src/threads/linux/mtx_lock.cpp
libc/src/threads/linux/mtx_unlock.cpp
libc/src/threads/linux/thrd_create.cpp
libc/src/threads/linux/thrd_join.cpp
Removed:
################################################################################
diff --git a/libc/src/__support/common.h.def b/libc/src/__support/common.h.def
index 48c63de08718..d2d18c696dff 100644
--- a/libc/src/__support/common.h.def
+++ b/libc/src/__support/common.h.def
@@ -21,7 +21,6 @@
#ifdef LLVM_LIBC_PUBLIC_PACKAGING
#define LLVM_LIBC_FUNCTION(type, name, arglist) \
- type name arglist; \
LLVM_LIBC_FUNCTION_ATTR decltype(__llvm_libc::name) __##name##_impl__ __asm__(#name); \
decltype(__llvm_libc::name) name [[gnu::alias(#name)]]; \
type __##name##_impl__ arglist
diff --git a/libc/src/fenv/feclearexcept.cpp b/libc/src/fenv/feclearexcept.cpp
index be180f6decb9..b0aa7631fef8 100644
--- a/libc/src/fenv/feclearexcept.cpp
+++ b/libc/src/fenv/feclearexcept.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/fenv/feclearexcept.h"
#include "src/__support/common.h"
#include "utils/FPUtil/FEnv.h"
diff --git a/libc/src/fenv/fegetround.cpp b/libc/src/fenv/fegetround.cpp
index 669b861c7db4..3e198f66c389 100644
--- a/libc/src/fenv/fegetround.cpp
+++ b/libc/src/fenv/fegetround.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/fenv/fegetround.h"
#include "src/__support/common.h"
#include "utils/FPUtil/FEnv.h"
diff --git a/libc/src/fenv/feraiseexcept.cpp b/libc/src/fenv/feraiseexcept.cpp
index cc3f11ad0fda..77128ff98d19 100644
--- a/libc/src/fenv/feraiseexcept.cpp
+++ b/libc/src/fenv/feraiseexcept.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/fenv/feraiseexcept.h"
#include "src/__support/common.h"
#include "utils/FPUtil/FEnv.h"
diff --git a/libc/src/fenv/fesetround.cpp b/libc/src/fenv/fesetround.cpp
index 50e726f924b4..5abd372215c7 100644
--- a/libc/src/fenv/fesetround.cpp
+++ b/libc/src/fenv/fesetround.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/fenv/fesetround.h"
#include "src/__support/common.h"
#include "utils/FPUtil/FEnv.h"
diff --git a/libc/src/fenv/fetestexcept.cpp b/libc/src/fenv/fetestexcept.cpp
index d4f5e1e96807..4f698dc196ae 100644
--- a/libc/src/fenv/fetestexcept.cpp
+++ b/libc/src/fenv/fetestexcept.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/fenv/fetestexcept.h"
#include "src/__support/common.h"
#include "utils/FPUtil/FEnv.h"
diff --git a/libc/src/math/ceil.cpp b/libc/src/math/ceil.cpp
index 7d603e7b4922..7c59c938acff 100644
--- a/libc/src/math/ceil.cpp
+++ b/libc/src/math/ceil.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/ceil.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"
diff --git a/libc/src/math/ceilf.cpp b/libc/src/math/ceilf.cpp
index 361f50755962..9093ee196617 100644
--- a/libc/src/math/ceilf.cpp
+++ b/libc/src/math/ceilf.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/ceilf.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"
diff --git a/libc/src/math/ceill.cpp b/libc/src/math/ceill.cpp
index 525e40b2ae25..23edb7a441c8 100644
--- a/libc/src/math/ceill.cpp
+++ b/libc/src/math/ceill.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/ceill.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"
diff --git a/libc/src/math/copysign.cpp b/libc/src/math/copysign.cpp
index 5d7af2528b05..f13fcbec46ea 100644
--- a/libc/src/math/copysign.cpp
+++ b/libc/src/math/copysign.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/copysign.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"
diff --git a/libc/src/math/copysignf.cpp b/libc/src/math/copysignf.cpp
index beec120d54ab..1ea4727a9ca4 100644
--- a/libc/src/math/copysignf.cpp
+++ b/libc/src/math/copysignf.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/copysignf.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"
diff --git a/libc/src/math/copysignl.cpp b/libc/src/math/copysignl.cpp
index c00b7a70646f..aeb84405cecb 100644
--- a/libc/src/math/copysignl.cpp
+++ b/libc/src/math/copysignl.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/copysignl.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"
diff --git a/libc/src/math/cosf.cpp b/libc/src/math/cosf.cpp
index ad0dfedd99fb..15911a520011 100644
--- a/libc/src/math/cosf.cpp
+++ b/libc/src/math/cosf.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/cosf.h"
#include "math_utils.h"
#include "sincosf_utils.h"
diff --git a/libc/src/math/exp2f.cpp b/libc/src/math/exp2f.cpp
index 012cb82b344f..f9cf8d81df20 100644
--- a/libc/src/math/exp2f.cpp
+++ b/libc/src/math/exp2f.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/exp2f.h"
#include "exp_utils.h"
#include "math_utils.h"
diff --git a/libc/src/math/exp_utils.cpp b/libc/src/math/exp_utils.cpp
index 7635f44f1577..a1bda632c010 100644
--- a/libc/src/math/exp_utils.cpp
+++ b/libc/src/math/exp_utils.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/exp_utils.h"
#include "exp_utils.h"
#include "math_utils.h"
diff --git a/libc/src/math/expf.cpp b/libc/src/math/expf.cpp
index df10e4e1ed16..451f12ab2f60 100644
--- a/libc/src/math/expf.cpp
+++ b/libc/src/math/expf.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/expf.h"
#include "exp_utils.h"
#include "math_utils.h"
diff --git a/libc/src/math/fabs.cpp b/libc/src/math/fabs.cpp
index 7069e1dd0788..e7376481665f 100644
--- a/libc/src/math/fabs.cpp
+++ b/libc/src/math/fabs.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/fabs.h"
#include "src/__support/common.h"
#include "utils/FPUtil/BasicOperations.h"
diff --git a/libc/src/math/fabsf.cpp b/libc/src/math/fabsf.cpp
index 6ed9ef7aa431..120e6a8570f4 100644
--- a/libc/src/math/fabsf.cpp
+++ b/libc/src/math/fabsf.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/fabsf.h"
#include "src/__support/common.h"
#include "utils/FPUtil/BasicOperations.h"
diff --git a/libc/src/math/fabsl.cpp b/libc/src/math/fabsl.cpp
index 3a3645990642..eecb15a87041 100644
--- a/libc/src/math/fabsl.cpp
+++ b/libc/src/math/fabsl.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/fabsl.h"
#include "src/__support/common.h"
#include "utils/FPUtil/BasicOperations.h"
diff --git a/libc/src/math/fdim.cpp b/libc/src/math/fdim.cpp
index ebc998e75d0a..b6bef16fca4d 100644
--- a/libc/src/math/fdim.cpp
+++ b/libc/src/math/fdim.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/fdim.h"
#include "src/__support/common.h"
#include "utils/FPUtil/BasicOperations.h"
diff --git a/libc/src/math/fdimf.cpp b/libc/src/math/fdimf.cpp
index d922bb9cfce9..c46c95a8fdef 100644
--- a/libc/src/math/fdimf.cpp
+++ b/libc/src/math/fdimf.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/fdimf.h"
#include "src/__support/common.h"
#include "utils/FPUtil/BasicOperations.h"
diff --git a/libc/src/math/fdiml.cpp b/libc/src/math/fdiml.cpp
index 5149484073fa..8f74bc0dd923 100644
--- a/libc/src/math/fdiml.cpp
+++ b/libc/src/math/fdiml.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/fdiml.h"
#include "src/__support/common.h"
#include "utils/FPUtil/BasicOperations.h"
diff --git a/libc/src/math/floor.cpp b/libc/src/math/floor.cpp
index a7a7d784ab7c..1f60aa715704 100644
--- a/libc/src/math/floor.cpp
+++ b/libc/src/math/floor.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/floor.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"
diff --git a/libc/src/math/floorf.cpp b/libc/src/math/floorf.cpp
index da464b6f8bd6..fc251ba7ad4c 100644
--- a/libc/src/math/floorf.cpp
+++ b/libc/src/math/floorf.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/floorf.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"
diff --git a/libc/src/math/floorl.cpp b/libc/src/math/floorl.cpp
index 38d30b8ecacf..13253d72e5aa 100644
--- a/libc/src/math/floorl.cpp
+++ b/libc/src/math/floorl.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/floorl.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"
diff --git a/libc/src/math/fmaf.cpp b/libc/src/math/fmaf.cpp
index 6b989c70b8c7..1ab1906559cf 100644
--- a/libc/src/math/fmaf.cpp
+++ b/libc/src/math/fmaf.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/fmaf.h"
#include "src/__support/common.h"
#include "utils/FPUtil/FEnv.h"
diff --git a/libc/src/math/fmax.cpp b/libc/src/math/fmax.cpp
index 8090126a62ff..d6585bbc9263 100644
--- a/libc/src/math/fmax.cpp
+++ b/libc/src/math/fmax.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/fmax.h"
#include "src/__support/common.h"
#include "utils/FPUtil/BasicOperations.h"
diff --git a/libc/src/math/fmaxf.cpp b/libc/src/math/fmaxf.cpp
index c4932c4c444a..2fc862cf3dd5 100644
--- a/libc/src/math/fmaxf.cpp
+++ b/libc/src/math/fmaxf.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/fmaxf.h"
#include "src/__support/common.h"
#include "utils/FPUtil/BasicOperations.h"
diff --git a/libc/src/math/fmaxl.cpp b/libc/src/math/fmaxl.cpp
index acfa9f2ffd2a..172c2d4deb96 100644
--- a/libc/src/math/fmaxl.cpp
+++ b/libc/src/math/fmaxl.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/fmaxl.h"
#include "src/__support/common.h"
#include "utils/FPUtil/BasicOperations.h"
diff --git a/libc/src/math/fmin.cpp b/libc/src/math/fmin.cpp
index f4a005684850..d5b1d497c895 100644
--- a/libc/src/math/fmin.cpp
+++ b/libc/src/math/fmin.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/fmin.h"
#include "src/__support/common.h"
#include "utils/FPUtil/BasicOperations.h"
diff --git a/libc/src/math/fminf.cpp b/libc/src/math/fminf.cpp
index a5c857975eb6..0a332c5812c9 100644
--- a/libc/src/math/fminf.cpp
+++ b/libc/src/math/fminf.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/fminf.h"
#include "src/__support/common.h"
#include "utils/FPUtil/BasicOperations.h"
diff --git a/libc/src/math/fminl.cpp b/libc/src/math/fminl.cpp
index 9324c14dc864..00bdf006ca45 100644
--- a/libc/src/math/fminl.cpp
+++ b/libc/src/math/fminl.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/fminl.h"
#include "src/__support/common.h"
#include "utils/FPUtil/BasicOperations.h"
diff --git a/libc/src/math/frexp.cpp b/libc/src/math/frexp.cpp
index 81d5f9ec3813..76a85ef2feb5 100644
--- a/libc/src/math/frexp.cpp
+++ b/libc/src/math/frexp.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/frexp.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"
diff --git a/libc/src/math/frexpf.cpp b/libc/src/math/frexpf.cpp
index 5d9a5b5556ea..5c2655eee366 100644
--- a/libc/src/math/frexpf.cpp
+++ b/libc/src/math/frexpf.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/frexpf.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"
diff --git a/libc/src/math/frexpl.cpp b/libc/src/math/frexpl.cpp
index ccdc18475159..16c508816a1c 100644
--- a/libc/src/math/frexpl.cpp
+++ b/libc/src/math/frexpl.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/frexpl.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"
diff --git a/libc/src/math/hypot.cpp b/libc/src/math/hypot.cpp
index 77a83d89ceb3..228f2fd70251 100644
--- a/libc/src/math/hypot.cpp
+++ b/libc/src/math/hypot.cpp
@@ -6,8 +6,9 @@
//
//===----------------------------------------------------------------------===//
-#include "utils/FPUtil/Hypot.h"
+#include "src/math/hypot.h"
#include "src/__support/common.h"
+#include "utils/FPUtil/Hypot.h"
namespace __llvm_libc {
diff --git a/libc/src/math/hypotf.cpp b/libc/src/math/hypotf.cpp
index eefc47e6cffd..cd37a237d98c 100644
--- a/libc/src/math/hypotf.cpp
+++ b/libc/src/math/hypotf.cpp
@@ -5,6 +5,7 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
+#include "src/math/hypotf.h"
#include "src/__support/common.h"
#include "utils/FPUtil/Hypot.h"
diff --git a/libc/src/math/ilogb.cpp b/libc/src/math/ilogb.cpp
index d2d3772db7ce..4f43a5a98914 100644
--- a/libc/src/math/ilogb.cpp
+++ b/libc/src/math/ilogb.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/ilogb.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"
diff --git a/libc/src/math/ilogbf.cpp b/libc/src/math/ilogbf.cpp
index 529530d670bc..0245777f86f9 100644
--- a/libc/src/math/ilogbf.cpp
+++ b/libc/src/math/ilogbf.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/ilogbf.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"
diff --git a/libc/src/math/ilogbl.cpp b/libc/src/math/ilogbl.cpp
index 92d9936f9de2..e4aca46dc1f6 100644
--- a/libc/src/math/ilogbl.cpp
+++ b/libc/src/math/ilogbl.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/ilogbl.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"
diff --git a/libc/src/math/ldexp.cpp b/libc/src/math/ldexp.cpp
index 9d8ffb5281ad..b4e5ff4ce804 100644
--- a/libc/src/math/ldexp.cpp
+++ b/libc/src/math/ldexp.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/ldexp.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"
diff --git a/libc/src/math/ldexpf.cpp b/libc/src/math/ldexpf.cpp
index 94030c0057aa..3e3257b07b74 100644
--- a/libc/src/math/ldexpf.cpp
+++ b/libc/src/math/ldexpf.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/ldexpf.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"
diff --git a/libc/src/math/ldexpl.cpp b/libc/src/math/ldexpl.cpp
index 08aba33622b8..018d5b4ffd6a 100644
--- a/libc/src/math/ldexpl.cpp
+++ b/libc/src/math/ldexpl.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/ldexpl.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"
diff --git a/libc/src/math/llrint.cpp b/libc/src/math/llrint.cpp
index 2f415268b384..e640cffd0195 100644
--- a/libc/src/math/llrint.cpp
+++ b/libc/src/math/llrint.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/llrint.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"
diff --git a/libc/src/math/llrintf.cpp b/libc/src/math/llrintf.cpp
index 35dca58bc995..0c292f703a35 100644
--- a/libc/src/math/llrintf.cpp
+++ b/libc/src/math/llrintf.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/llrintf.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"
diff --git a/libc/src/math/llrintl.cpp b/libc/src/math/llrintl.cpp
index 962886314f00..91659fa22d22 100644
--- a/libc/src/math/llrintl.cpp
+++ b/libc/src/math/llrintl.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/llrintl.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"
diff --git a/libc/src/math/llround.cpp b/libc/src/math/llround.cpp
index 79042cfccf26..bfcd8af9a54d 100644
--- a/libc/src/math/llround.cpp
+++ b/libc/src/math/llround.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/llround.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"
diff --git a/libc/src/math/llroundf.cpp b/libc/src/math/llroundf.cpp
index 560167696fde..13f6eb61266e 100644
--- a/libc/src/math/llroundf.cpp
+++ b/libc/src/math/llroundf.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/llroundf.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"
diff --git a/libc/src/math/llroundl.cpp b/libc/src/math/llroundl.cpp
index 88bd6994749d..4aa3614bfa7c 100644
--- a/libc/src/math/llroundl.cpp
+++ b/libc/src/math/llroundl.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/llroundl.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"
diff --git a/libc/src/math/logb.cpp b/libc/src/math/logb.cpp
index d1f5a5e69a8a..8c120622ea06 100644
--- a/libc/src/math/logb.cpp
+++ b/libc/src/math/logb.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/logb.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"
diff --git a/libc/src/math/logbf.cpp b/libc/src/math/logbf.cpp
index 03a4c6dc284e..45e9b91083c1 100644
--- a/libc/src/math/logbf.cpp
+++ b/libc/src/math/logbf.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/logbf.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"
diff --git a/libc/src/math/logbl.cpp b/libc/src/math/logbl.cpp
index 386a50427456..71ee9294d64e 100644
--- a/libc/src/math/logbl.cpp
+++ b/libc/src/math/logbl.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/logbl.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"
diff --git a/libc/src/math/lrint.cpp b/libc/src/math/lrint.cpp
index 2cfdf340eac2..2a91c338486e 100644
--- a/libc/src/math/lrint.cpp
+++ b/libc/src/math/lrint.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/lrint.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"
diff --git a/libc/src/math/lrintf.cpp b/libc/src/math/lrintf.cpp
index a5eb5f036385..e9e1ea14d1d7 100644
--- a/libc/src/math/lrintf.cpp
+++ b/libc/src/math/lrintf.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/lrintf.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"
diff --git a/libc/src/math/lrintl.cpp b/libc/src/math/lrintl.cpp
index 0157ed136463..c7a688e83288 100644
--- a/libc/src/math/lrintl.cpp
+++ b/libc/src/math/lrintl.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/lrintl.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"
diff --git a/libc/src/math/lround.cpp b/libc/src/math/lround.cpp
index 669b5c4dfb53..f0a25b797719 100644
--- a/libc/src/math/lround.cpp
+++ b/libc/src/math/lround.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/lround.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"
diff --git a/libc/src/math/lroundf.cpp b/libc/src/math/lroundf.cpp
index ae696371ee03..c4b100ae61e5 100644
--- a/libc/src/math/lroundf.cpp
+++ b/libc/src/math/lroundf.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/lroundf.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"
diff --git a/libc/src/math/lroundl.cpp b/libc/src/math/lroundl.cpp
index 36ea2ae36802..4caa95b57339 100644
--- a/libc/src/math/lroundl.cpp
+++ b/libc/src/math/lroundl.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/lroundl.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"
diff --git a/libc/src/math/math_utils.cpp b/libc/src/math/math_utils.cpp
index 42a912bac769..b72dc27694c6 100644
--- a/libc/src/math/math_utils.cpp
+++ b/libc/src/math/math_utils.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/math_utils.h"
#include "math_utils.h"
namespace __llvm_libc {
diff --git a/libc/src/math/modf.cpp b/libc/src/math/modf.cpp
index 1942f8f0e455..c0fe74b0dbc1 100644
--- a/libc/src/math/modf.cpp
+++ b/libc/src/math/modf.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/modf.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"
diff --git a/libc/src/math/modff.cpp b/libc/src/math/modff.cpp
index 603f2c73d579..fced925b3565 100644
--- a/libc/src/math/modff.cpp
+++ b/libc/src/math/modff.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/modff.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"
diff --git a/libc/src/math/modfl.cpp b/libc/src/math/modfl.cpp
index 8102bc5e1b9b..b0c1a6e2ebcf 100644
--- a/libc/src/math/modfl.cpp
+++ b/libc/src/math/modfl.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/modfl.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"
diff --git a/libc/src/math/nearbyint.cpp b/libc/src/math/nearbyint.cpp
index 26ff0f431ddc..c4704a2dfe88 100644
--- a/libc/src/math/nearbyint.cpp
+++ b/libc/src/math/nearbyint.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/nearbyint.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"
diff --git a/libc/src/math/nearbyintf.cpp b/libc/src/math/nearbyintf.cpp
index d073dc1c2285..31042d528924 100644
--- a/libc/src/math/nearbyintf.cpp
+++ b/libc/src/math/nearbyintf.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/nearbyintf.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"
diff --git a/libc/src/math/nearbyintl.cpp b/libc/src/math/nearbyintl.cpp
index d10e1dbabbd6..b550520be983 100644
--- a/libc/src/math/nearbyintl.cpp
+++ b/libc/src/math/nearbyintl.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/nearbyintl.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"
diff --git a/libc/src/math/nextafter.cpp b/libc/src/math/nextafter.cpp
index 80eabbd28753..92c96c00cb38 100644
--- a/libc/src/math/nextafter.cpp
+++ b/libc/src/math/nextafter.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/nextafter.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"
diff --git a/libc/src/math/nextafterf.cpp b/libc/src/math/nextafterf.cpp
index acde903923f8..1e848e319a34 100644
--- a/libc/src/math/nextafterf.cpp
+++ b/libc/src/math/nextafterf.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/nextafterf.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"
diff --git a/libc/src/math/nextafterl.cpp b/libc/src/math/nextafterl.cpp
index c4eee4ceb75f..c958e2034e61 100644
--- a/libc/src/math/nextafterl.cpp
+++ b/libc/src/math/nextafterl.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/nextafterl.h"
#include "src/__support/common.h"
#include "utils/FPUtil/ManipulationFunctions.h"
diff --git a/libc/src/math/remainder.cpp b/libc/src/math/remainder.cpp
index d8e254b01dd1..521f66f783d2 100644
--- a/libc/src/math/remainder.cpp
+++ b/libc/src/math/remainder.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/remainder.h"
#include "src/__support/common.h"
#include "utils/FPUtil/DivisionAndRemainderOperations.h"
diff --git a/libc/src/math/remainderf.cpp b/libc/src/math/remainderf.cpp
index 3c4e5644ff03..59d21f723b40 100644
--- a/libc/src/math/remainderf.cpp
+++ b/libc/src/math/remainderf.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/remainderf.h"
#include "src/__support/common.h"
#include "utils/FPUtil/DivisionAndRemainderOperations.h"
diff --git a/libc/src/math/remainderl.cpp b/libc/src/math/remainderl.cpp
index 842595e3064e..b13ddb65e002 100644
--- a/libc/src/math/remainderl.cpp
+++ b/libc/src/math/remainderl.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/remainderl.h"
#include "src/__support/common.h"
#include "utils/FPUtil/DivisionAndRemainderOperations.h"
diff --git a/libc/src/math/remquo.cpp b/libc/src/math/remquo.cpp
index 89803ba636ea..acecce4a210a 100644
--- a/libc/src/math/remquo.cpp
+++ b/libc/src/math/remquo.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/remquo.h"
#include "src/__support/common.h"
#include "utils/FPUtil/DivisionAndRemainderOperations.h"
diff --git a/libc/src/math/remquof.cpp b/libc/src/math/remquof.cpp
index 0330c430316a..a579137978cf 100644
--- a/libc/src/math/remquof.cpp
+++ b/libc/src/math/remquof.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/remquof.h"
#include "src/__support/common.h"
#include "utils/FPUtil/DivisionAndRemainderOperations.h"
diff --git a/libc/src/math/remquol.cpp b/libc/src/math/remquol.cpp
index 9a30acd5139b..9457aec43456 100644
--- a/libc/src/math/remquol.cpp
+++ b/libc/src/math/remquol.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/remquol.h"
#include "src/__support/common.h"
#include "utils/FPUtil/DivisionAndRemainderOperations.h"
diff --git a/libc/src/math/rint.cpp b/libc/src/math/rint.cpp
index 056d05af4322..27a55c8cac5a 100644
--- a/libc/src/math/rint.cpp
+++ b/libc/src/math/rint.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/rint.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"
diff --git a/libc/src/math/rintf.cpp b/libc/src/math/rintf.cpp
index 77a28c8ed6c8..0800483bb1a0 100644
--- a/libc/src/math/rintf.cpp
+++ b/libc/src/math/rintf.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/rintf.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"
diff --git a/libc/src/math/rintl.cpp b/libc/src/math/rintl.cpp
index fb4819a3f087..b4f417e14f11 100644
--- a/libc/src/math/rintl.cpp
+++ b/libc/src/math/rintl.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/rintl.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"
diff --git a/libc/src/math/round.cpp b/libc/src/math/round.cpp
index ed36a128fe3d..9687837400df 100644
--- a/libc/src/math/round.cpp
+++ b/libc/src/math/round.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/round.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"
diff --git a/libc/src/math/roundf.cpp b/libc/src/math/roundf.cpp
index a2be7094177d..b075e5ff4b38 100644
--- a/libc/src/math/roundf.cpp
+++ b/libc/src/math/roundf.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/roundf.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"
diff --git a/libc/src/math/roundl.cpp b/libc/src/math/roundl.cpp
index 7e3ba5e4ebce..18c8d8545b0e 100644
--- a/libc/src/math/roundl.cpp
+++ b/libc/src/math/roundl.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/roundl.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"
diff --git a/libc/src/math/sincosf.cpp b/libc/src/math/sincosf.cpp
index 4903af3e93ef..c032cd3565af 100644
--- a/libc/src/math/sincosf.cpp
+++ b/libc/src/math/sincosf.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/sincosf.h"
#include "math_utils.h"
#include "sincosf_utils.h"
diff --git a/libc/src/math/sinf.cpp b/libc/src/math/sinf.cpp
index 40bdc4452f36..467480e04de6 100644
--- a/libc/src/math/sinf.cpp
+++ b/libc/src/math/sinf.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/sinf.h"
#include "math_utils.h"
#include "sincosf_utils.h"
diff --git a/libc/src/math/sqrt.cpp b/libc/src/math/sqrt.cpp
index 7c6a1157b8eb..2f17f4e17f66 100644
--- a/libc/src/math/sqrt.cpp
+++ b/libc/src/math/sqrt.cpp
@@ -6,8 +6,9 @@
//
//===----------------------------------------------------------------------===//
-#include "utils/FPUtil/Sqrt.h"
+#include "src/math/sqrt.h"
#include "src/__support/common.h"
+#include "utils/FPUtil/Sqrt.h"
namespace __llvm_libc {
diff --git a/libc/src/math/sqrtf.cpp b/libc/src/math/sqrtf.cpp
index 5383e93cbcd8..026c2f959995 100644
--- a/libc/src/math/sqrtf.cpp
+++ b/libc/src/math/sqrtf.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/sqrtf.h"
#include "src/__support/common.h"
#include "utils/FPUtil/Sqrt.h"
diff --git a/libc/src/math/sqrtl.cpp b/libc/src/math/sqrtl.cpp
index a526e5e62c59..0c7b80644639 100644
--- a/libc/src/math/sqrtl.cpp
+++ b/libc/src/math/sqrtl.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/sqrtl.h"
#include "src/__support/common.h"
#include "utils/FPUtil/Sqrt.h"
diff --git a/libc/src/math/trunc.cpp b/libc/src/math/trunc.cpp
index 68b5b8529351..e3174ccb47f3 100644
--- a/libc/src/math/trunc.cpp
+++ b/libc/src/math/trunc.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/trunc.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"
diff --git a/libc/src/math/truncf.cpp b/libc/src/math/truncf.cpp
index 8b9949f3c6c9..cd8c8abdd9d9 100644
--- a/libc/src/math/truncf.cpp
+++ b/libc/src/math/truncf.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/truncf.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"
diff --git a/libc/src/math/truncl.cpp b/libc/src/math/truncl.cpp
index f78a19347a35..0106fb81a35c 100644
--- a/libc/src/math/truncl.cpp
+++ b/libc/src/math/truncl.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/math/truncl.h"
#include "src/__support/common.h"
#include "utils/FPUtil/NearestIntegerOperations.h"
diff --git a/libc/src/threads/linux/call_once.cpp b/libc/src/threads/linux/call_once.cpp
index 9e1d9359ad37..ac8aca4cc8d8 100644
--- a/libc/src/threads/linux/call_once.cpp
+++ b/libc/src/threads/linux/call_once.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/threads/call_once.h"
#include "config/linux/syscall.h" // For syscall functions.
#include "include/sys/syscall.h" // For syscall numbers.
#include "include/threads.h" // For call_once related type definition.
diff --git a/libc/src/threads/linux/mtx_init.cpp b/libc/src/threads/linux/mtx_init.cpp
index 610098a5f02d..1a77dcb24fe9 100644
--- a/libc/src/threads/linux/mtx_init.cpp
+++ b/libc/src/threads/linux/mtx_init.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/threads/mtx_init.h"
#include "include/threads.h" // For mtx_t definition.
#include "src/__support/common.h"
#include "src/threads/linux/thread_utils.h"
diff --git a/libc/src/threads/linux/mtx_lock.cpp b/libc/src/threads/linux/mtx_lock.cpp
index 923b1b6197a5..7ae30a78ba81 100644
--- a/libc/src/threads/linux/mtx_lock.cpp
+++ b/libc/src/threads/linux/mtx_lock.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/threads/mtx_lock.h"
#include "config/linux/syscall.h" // For syscall functions.
#include "include/sys/syscall.h" // For syscall numbers.
#include "include/threads.h" // For mtx_t definition.
diff --git a/libc/src/threads/linux/mtx_unlock.cpp b/libc/src/threads/linux/mtx_unlock.cpp
index 370e1b1a9c8b..02e2f1a2d1aa 100644
--- a/libc/src/threads/linux/mtx_unlock.cpp
+++ b/libc/src/threads/linux/mtx_unlock.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/threads/mtx_unlock.h"
#include "config/linux/syscall.h" // For syscall functions.
#include "include/sys/syscall.h" // For syscall numbers.
#include "include/threads.h" // For mtx_t definition.
diff --git a/libc/src/threads/linux/thrd_create.cpp b/libc/src/threads/linux/thrd_create.cpp
index ff47e53c4872..8b68f2a48688 100644
--- a/libc/src/threads/linux/thrd_create.cpp
+++ b/libc/src/threads/linux/thrd_create.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/threads/thrd_create.h"
#include "config/linux/syscall.h" // For syscall function.
#include "include/errno.h" // For E* error values.
#include "include/sys/mman.h" // For PROT_* and MAP_* definitions.
diff --git a/libc/src/threads/linux/thrd_join.cpp b/libc/src/threads/linux/thrd_join.cpp
index c0ad33c8f447..7b6cbb762367 100644
--- a/libc/src/threads/linux/thrd_join.cpp
+++ b/libc/src/threads/linux/thrd_join.cpp
@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
+#include "src/threads/thrd_join.h"
#include "config/linux/syscall.h" // For syscall function.
#include "include/sys/syscall.h" // For syscall numbers.
#include "include/threads.h" // For thrd_* type definitions.
More information about the libc-commits
mailing list