[libc-commits] [libc] [libc][math] Implement isnanbf16 function (PR #238777)
via libc-commits
libc-commits at lists.llvm.org
Wed Nov 4 05:14:48 PST 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {cmake-format}-->
:warning: CMake code formatter, cmake-format found issues in your code. :warning:
<details>
<summary>
You can fix this locally with the following command:
</summary>
``````````bash
python3 libc/utils/cmake_format.py -i libc/src/__support/math/CMakeLists.txt libc/src/math/CMakeLists.txt libc/src/math/generic/CMakeLists.txt libc/test/src/math/smoke/CMakeLists.txt
``````````
You can also preview the formatting diff without modifying files:
``````````bash
python3 libc/utils/cmake_format.py --dry-run --diff libc/src/__support/math/CMakeLists.txt libc/src/math/CMakeLists.txt libc/src/math/generic/CMakeLists.txt libc/test/src/math/smoke/CMakeLists.txt
``````````
</details>
<details>
<summary>
View the diff from cmake-format here.
</summary>
``````````diff
--- a/libc/src/__support/math/CMakeLists.txt
+++ b/libc/src/__support/math/CMakeLists.txt
@@ -1847,14 +1847,14 @@
)
add_header_library(
- isnanbf16
- HDRS
- isnanbf16.h
- DEPENDS
- libc.src.__support.FPUtil.bfloat16
- libc.src.__support.FPUtil.fp_bits
- libc.src.__support.macros.config
- )
+ isnanbf16
+ HDRS
+ isnanbf16.h
+ DEPENDS
+ libc.src.__support.FPUtil.bfloat16
+ libc.src.__support.FPUtil.fp_bits
+ libc.src.__support.macros.config
+)
add_header_library(
issignaling
--- a/libc/src/math/generic/CMakeLists.txt
+++ b/libc/src/math/generic/CMakeLists.txt
@@ -3262,13 +3262,13 @@
)
add_entrypoint_object(
- isnanbf16
- SRCS
- isnanbf16.cpp
- HDRS
- ../isnanbf16.h
- DEPENDS
- libc.src.__support.math.isnanbf16
+ isnanbf16
+ SRCS
+ isnanbf16.cpp
+ HDRS
+ ../isnanbf16.h
+ DEPENDS
+ libc.src.__support.math.isnanbf16
)
add_entrypoint_object(
--- a/libc/test/src/math/smoke/CMakeLists.txt
+++ b/libc/test/src/math/smoke/CMakeLists.txt
@@ -2255,17 +2255,17 @@
)
add_fp_unittest(
- isnanbf16_test
- SUITE
- libc-math-smoke-tests
- SRCS
- isnanbf16_test.cpp
- HDRS
- IsNanTest.h
- DEPENDS
- libc.src.math.isnanbf16
- libc.src.__support.FPUtil.bfloat16
- )
+ isnanbf16_test
+ SUITE
+ libc-math-smoke-tests
+ SRCS
+ isnanbf16_test.cpp
+ HDRS
+ IsNanTest.h
+ DEPENDS
+ libc.src.math.isnanbf16
+ libc.src.__support.FPUtil.bfloat16
+)
add_fp_unittest(
llogb_test
``````````
</details>
https://github.com/llvm/llvm-project/pull/238777
More information about the libc-commits
mailing list