[libc-commits] [libc] [llvm] [libc][math] Refactor fmin to header only (PR #182290)
via libc-commits
libc-commits at lists.llvm.org
Mon Feb 23 07:20:07 PST 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions cpp,h -- libc/shared/math/fmin.h libc/shared/math/fminbf16.h libc/shared/math/fminf.h libc/shared/math/fminf128.h libc/shared/math/fminf16.h libc/src/__support/math/fmin.h libc/src/__support/math/fminbf16.h libc/src/__support/math/fminf.h libc/src/__support/math/fminf128.h libc/src/__support/math/fminf16.h libc/shared/math.h libc/src/math/generic/fmin.cpp libc/src/math/generic/fminbf16.cpp libc/src/math/generic/fminf.cpp libc/src/math/generic/fminf128.cpp libc/src/math/generic/fminf16.cpp libc/test/shared/shared_math_test.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/shared/math.h b/libc/shared/math.h
index b4ae7a23b..163efbe02 100644
--- a/libc/shared/math.h
+++ b/libc/shared/math.h
@@ -94,17 +94,17 @@
#include "math/faddl.h"
#include "math/ffma.h"
#include "math/ffmal.h"
-#include "math/fmin.h"
-#include "math/fminbf16.h"
-#include "math/fminf.h"
-#include "math/fminf128.h"
-#include "math/fminf16.h"
#include "math/fmax.h"
#include "math/fmaxbf16.h"
#include "math/fmaxf.h"
#include "math/fmaxf128.h"
#include "math/fmaxf16.h"
#include "math/fmaxl.h"
+#include "math/fmin.h"
+#include "math/fminbf16.h"
+#include "math/fminf.h"
+#include "math/fminf128.h"
+#include "math/fminf16.h"
#include "math/frexpf.h"
#include "math/frexpf128.h"
#include "math/frexpf16.h"
``````````
</details>
https://github.com/llvm/llvm-project/pull/182290
More information about the libc-commits
mailing list