[libc-commits] [libc] [libc][math][c23] Implement fmaxf16 and fminf16 function (PR #94131)

via libc-commits libc-commits at lists.llvm.org
Sat Jun 1 17:50:48 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 0310f7f2d0c56a5697710251cec9803cbf7b4d56 deeaa11649f6b812b16b66840d4c2e58cbdbb52f -- libc/src/math/fmaxf16.h libc/src/math/fminf16.h libc/src/math/generic/fmaxf16.cpp libc/src/math/generic/fminf16.cpp libc/test/src/math/smoke/fmaxf16_test.cpp libc/test/src/math/smoke/fminf16_test.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libc/src/math/fmaxf16.h b/libc/src/math/fmaxf16.h
index f8835abbe6..8cdc9c4cbb 100644
--- a/libc/src/math/fmaxf16.h
+++ b/libc/src/math/fmaxf16.h
@@ -1,4 +1,5 @@
-//===-- Implementation header for fmaxf16 -------------------------*- C++ -*-===//
+//===-- Implementation header for fmaxf16 -------------------------*- C++
+//-*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
@@ -18,4 +19,3 @@ float16 fmaxf16(float16 x, float16 y);
 } // namespace LIBC_NAMESPACE
 
 #endif // LLVM_LIBC_SRC_MATH_FMAXF16_H
-

``````````

</details>


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


More information about the libc-commits mailing list