[libc-commits] [libc] [llvm] [libc][math] Refactor log to header-only shared math (PR #175395)

Muhammad Bassiouni via libc-commits libc-commits at lists.llvm.org
Sat Jan 10 15:26:04 PST 2026


================
@@ -7,843 +7,9 @@
 //===----------------------------------------------------------------------===//
 
 #include "src/math/log.h"
-#include "src/__support/FPUtil/FEnvImpl.h"
-#include "src/__support/FPUtil/FPBits.h"
-#include "src/__support/FPUtil/PolyEval.h"
-#include "src/__support/FPUtil/double_double.h"
-#include "src/__support/FPUtil/dyadic_float.h"
-#include "src/__support/FPUtil/multiply_add.h"
-#include "src/__support/common.h"
-#include "src/__support/integer_literals.h"
-#include "src/__support/macros/config.h"
-#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
-
-#include "log_range_reduction.h"
----------------
bassiounix wrote:

This header file needs to be ported as well with `log.h` in `__support/math`.
Please also make sure to update all the files that depends on or includes `log_range_reduction.h` both in the include and the build system (CMake and bazel).

https://github.com/llvm/llvm-project/pull/175395


More information about the libc-commits mailing list