[libc-commits] [libc] 9da0871 - [libc][NFC] clean up some includes (#99719)

via libc-commits libc-commits at lists.llvm.org
Mon Jul 22 14:54:36 PDT 2024


Author: Michael Jones
Date: 2024-07-22T14:54:33-07:00
New Revision: 9da087147a6be2053365e3bb30f0864456efaea0

URL: https://github.com/llvm/llvm-project/commit/9da087147a6be2053365e3bb30f0864456efaea0
DIFF: https://github.com/llvm/llvm-project/commit/9da087147a6be2053365e3bb30f0864456efaea0.diff

LOG: [libc][NFC] clean up some includes (#99719)

While looking through the list of includes for #99693 I found these
includes that also need to be cleaned up. I removed the extra includes
in expm1.cpp, but the include in thread.h needs more attention so I just
marked it with a todo.

Added: 
    

Modified: 
    libc/src/__support/threads/thread.h
    libc/src/math/generic/expm1.cpp

Removed: 
    


################################################################################
diff  --git a/libc/src/__support/threads/thread.h b/libc/src/__support/threads/thread.h
index 931745299ffac..b9ce3d77d3126 100644
--- a/libc/src/__support/threads/thread.h
+++ b/libc/src/__support/threads/thread.h
@@ -22,6 +22,7 @@
 #include "src/__support/macros/config.h"
 #include "src/__support/macros/properties/architectures.h"
 
+// TODO: fix this unguarded linux dep
 #include <linux/param.h> // for exec_pagesize.
 
 #include <stddef.h> // For size_t

diff  --git a/libc/src/math/generic/expm1.cpp b/libc/src/math/generic/expm1.cpp
index d9485864df899..a4dbf38ab27d0 100644
--- a/libc/src/math/generic/expm1.cpp
+++ b/libc/src/math/generic/expm1.cpp
@@ -30,13 +30,6 @@
 #define LIBC_MATH_EXPM1_SKIP_ACCURATE_PASS
 #endif
 
-// #define DEBUGDEBUG
-
-#ifdef DEBUGDEBUG
-#include <iomanip>
-#include <iostream>
-#endif
-
 namespace LIBC_NAMESPACE_DECL {
 
 using fputil::DoubleDouble;


        


More information about the libc-commits mailing list