[libc-commits] [libc] [llvm] [libc][math][c23] Add fmaf16 C23 math	function. (PR #130757)
    via libc-commits 
    libc-commits at lists.llvm.org
       
    Wed Mar 19 03:14:27 PDT 2025
    
    
  
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 2e39533e5055bc82bf5a1b2a888e5d65a33e72f9 5f2b38438ce8d7db58d3b421084a127913dbb4d9 --extensions h,cpp -- libc/src/math/fmaf16.h libc/src/math/generic/fmaf16.cpp libc/test/src/math/fmaf16_test.cpp libc/test/src/math/smoke/fmaf16_test.cpp libc/test/src/math/smoke/FmaTest.h libc/utils/MPFRWrapper/MPFRUtils.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/test/src/math/smoke/FmaTest.h b/libc/test/src/math/smoke/FmaTest.h
index d044a9818a..9752e07f4c 100644
--- a/libc/test/src/math/smoke/FmaTest.h
+++ b/libc/test/src/math/smoke/FmaTest.h
@@ -90,8 +90,8 @@ public:
     // Test overflow.
     OutType z = out.max_normal;
     InType in_z = LIBC_NAMESPACE::fputil::cast<InType>(out.max_normal);
-      EXPECT_FP_EQ_ALL_ROUNDING(OutType(0.75) * z,
-                                func(InType(1.75), in_z, -in_z));
+    EXPECT_FP_EQ_ALL_ROUNDING(OutType(0.75) * z,
+                              func(InType(1.75), in_z, -in_z));
 
     // Exact cancellation.
     EXPECT_FP_EQ_ROUNDING_NEAREST(
``````````
</details>
https://github.com/llvm/llvm-project/pull/130757
    
    
More information about the libc-commits
mailing list