[compiler-rt] support QUAD with native long double (PR #77981)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 12 12:57:43 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 1048b5999b4b1c970f3b454040d4352770e5cf5c 01b59de67ffda70b8c2c5c1ea54b43d8e9f2c686 -- compiler-rt/lib/builtins/divtc3.c compiler-rt/lib/builtins/fp_lib.h compiler-rt/lib/builtins/int_types.h compiler-rt/lib/builtins/multc3.c
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/builtins/int_types.h b/compiler-rt/lib/builtins/int_types.h
index 219948850a..2995fd08d6 100644
--- a/compiler-rt/lib/builtins/int_types.h
+++ b/compiler-rt/lib/builtins/int_types.h
@@ -190,7 +190,7 @@ typedef long double tf_float;
#endif
#define TF_C(x) x##L
#elif __LDBL_MANT_DIG__ == 113 ||
- (__FLT_RADIX__ == 16 && __LDBL_MANT_DIG__ == 28)
+(__FLT_RADIX__ == 16 && __LDBL_MANT_DIG__ == 28)
// Use long double instead of __float128 if it matches the IEEE 128-bit format
// or the IBM hexadecimal format.
#define CRT_LDBL_128BIT
@@ -199,7 +199,7 @@ typedef long double tf_float;
#define CRT_HAS_IEEE_TF
#define CRT_LDBL_IEEE_F128
#endif
-typedef long double tf_float;
+ typedef long double tf_float;
#define TF_C(x) x##L
#elif defined(__FLOAT128__) || defined(__SIZEOF_FLOAT128__)
#define CRT_HAS___FLOAT128_KEYWORD
``````````
</details>
https://github.com/llvm/llvm-project/pull/77981
More information about the llvm-commits
mailing list