[libc-commits] [libc] [libc] Add `lgamma` and `lgamma_r` stubs for the GPU (PR #102019)
via libc-commits
libc-commits at lists.llvm.org
Mon Aug 5 10:19:21 PDT 2024
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 9fea73110ecc0a13d18e5c52f8e7fa62a9de9ee9 2d895bee4a78824ce128b866bec5a466e11a03be --extensions h,cpp -- libc/src/math/amdgpu/lgamma.cpp libc/src/math/amdgpu/lgamma_r.cpp libc/src/math/lgamma.h libc/src/math/lgamma_r.h libc/src/math/nvptx/lgamma.cpp libc/src/math/nvptx/lgamma_r.cpp libc/src/math/amdgpu/declarations.h libc/src/math/nvptx/declarations.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/src/math/lgamma.h b/libc/src/math/lgamma.h
index 603486765e..4c7d365677 100644
--- a/libc/src/math/lgamma.h
+++ b/libc/src/math/lgamma.h
@@ -18,4 +18,3 @@ double lgamma(double x);
} // namespace LIBC_NAMESPACE_DECL
#endif // LLVM_LIBC_SRC_MATH_LGAMMA_H
-
diff --git a/libc/src/math/nvptx/lgamma.cpp b/libc/src/math/nvptx/lgamma.cpp
index 012ccd35bf..0447a97eea 100644
--- a/libc/src/math/nvptx/lgamma.cpp
+++ b/libc/src/math/nvptx/lgamma.cpp
@@ -17,4 +17,3 @@ namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(double, lgamma, (double x)) { return __nv_lgamma(x); }
} // namespace LIBC_NAMESPACE_DECL
-
``````````
</details>
https://github.com/llvm/llvm-project/pull/102019
More information about the libc-commits
mailing list