[clang] [CLANG] Full support of complex multiplication and division. (PR #81514)

via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 20 13:28:36 PST 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 d08d3159d5ee0ee127d3581776ef569b8a6113af eb9a35c4b3c42b0caf3ddddce4759dd4b1b640a8 -- clang/include/clang/Basic/LangOptions.h clang/lib/CodeGen/CGExprComplex.cpp clang/lib/Driver/ToolChains/Clang.cpp clang/lib/Parse/ParsePragma.cpp clang/test/CodeGen/cx-complex-range.c clang/test/CodeGen/pragma-cx-limited-range.c clang/test/Driver/range.c
``````````

</details>

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

``````````diff
diff --git a/clang/include/clang/Basic/LangOptions.h b/clang/include/clang/Basic/LangOptions.h
index 9eaa59b2d4..149d34533e 100644
--- a/clang/include/clang/Basic/LangOptions.h
+++ b/clang/include/clang/Basic/LangOptions.h
@@ -400,17 +400,20 @@ public:
   // division.
   enum ComplexRangeKind {
     /// Implementation of complex division and multiplication using a call to
-   ///  runtime library functions(generally the case, but the BE might
-   /// sometimes replace the library call if it knows enough about the
-   /// potential range of the inputs). Overflow and non -finite values are
-   /// handled by the library implementation.
+    ///  runtime library functions(generally the case, but the BE might
+    /// sometimes replace the library call if it knows enough about the
+    /// potential range of the inputs). Overflow and non -finite values are
+    /// handled by the library implementation.
     CX_Full,
 
     /// Implementation of complex division using the Smith algorithm at
     /// source precision. Smith's algorithm for complex division.
-    /// See SMITH, R. L. Algorithm 116: Complex division. Commun. ACM 5, 8 (1962).
-    /// This value offers improved handling for overflow in intermediate calculations,
-    /// but overflow may occur. NaN and infinite and  values are not handled in some
+    /// See SMITH, R. L. Algorithm 116: Complex division. Commun. ACM 5, 8
+    /// (1962).
+    /// This value offers improved handling for overflow in intermediate
+    /// calculations,
+    /// but overflow may occur. NaN and infinite and  values are not handled in
+    /// some
     // cases.
     CX_Improved,
 

``````````

</details>


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


More information about the cfe-commits mailing list