[libc-commits] [libc] [libc][stdfix] Generate stdfix.h header with fixed point precision macros according to ISO/IEC TR 18037:2008 standard, and add fixed point type support detection. (PR #81255)
via libc-commits
libc-commits at lists.llvm.org
Tue Feb 13 13:12:19 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 b1b8a383fcdab007ccd1a5daa08cb33ce7cbc6c0 e2a9af5493d66fb4d415ee857eea8c89f72f801f -- libc/cmake/modules/compiler_features/check_fixed_point.cpp libc/include/llvm-libc-macros/stdfix-macros.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/include/llvm-libc-macros/stdfix-macros.h b/libc/include/llvm-libc-macros/stdfix-macros.h
index 7be6fdc4cb..7cb74adc39 100644
--- a/libc/include/llvm-libc-macros/stdfix-macros.h
+++ b/libc/include/llvm-libc-macros/stdfix-macros.h
@@ -22,7 +22,8 @@
#define accum _Accum
#define sat _Sat
-// Default values: from ISO/IEC TR 18037:2008 standard - Annex A.3 - Typical desktop processor.
+// Default values: from ISO/IEC TR 18037:2008 standard - Annex A.3 - Typical
+// desktop processor.
#ifdef __SFRACT_FBIT__
#define SFRACT_FBIT __SFRACT_FBIT__
``````````
</details>
https://github.com/llvm/llvm-project/pull/81255
More information about the libc-commits
mailing list