[libc-commits] [libc] [libc][stdfix] Implement fixed point bitsfx functions in llvm-libc (PR #116599)

via libc-commits libc-commits at lists.llvm.org
Mon Nov 18 02:39:44 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 3d57c79728968e291df4929b377b3580d16af7b9 cab2b3b10aefe72daa9c50721062b4b9212aeb9b --extensions h,cpp -- libc/src/stdfix/bitshk.cpp libc/src/stdfix/bitshk.h libc/src/stdfix/bitshr.cpp libc/src/stdfix/bitshr.h libc/src/stdfix/bitsk.cpp libc/src/stdfix/bitsk.h libc/src/stdfix/bitslk.cpp libc/src/stdfix/bitslk.h libc/src/stdfix/bitslr.cpp libc/src/stdfix/bitslr.h libc/src/stdfix/bitsr.cpp libc/src/stdfix/bitsr.h libc/src/stdfix/bitsuhk.cpp libc/src/stdfix/bitsuhk.h libc/src/stdfix/bitsuhr.cpp libc/src/stdfix/bitsuhr.h libc/src/stdfix/bitsuk.cpp libc/src/stdfix/bitsuk.h libc/src/stdfix/bitsulk.cpp libc/src/stdfix/bitsulk.h libc/src/stdfix/bitsulr.cpp libc/src/stdfix/bitsulr.h libc/src/stdfix/bitsur.cpp libc/src/stdfix/bitsur.h
``````````

</details>

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

``````````diff
diff --git a/libc/src/stdfix/bitsuhk.cpp b/libc/src/stdfix/bitsuhk.cpp
index eae580e12f..a028711022 100644
--- a/libc/src/stdfix/bitsuhk.cpp
+++ b/libc/src/stdfix/bitsuhk.cpp
@@ -1,4 +1,5 @@
-//===-- Implementation of bitsuhk function ---------------------------------===//
+//===-- Implementation of bitsuhk function
+//---------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
diff --git a/libc/src/stdfix/bitsuhk.h b/libc/src/stdfix/bitsuhk.h
index f7f9ca65d2..3969cf5dc7 100644
--- a/libc/src/stdfix/bitsuhk.h
+++ b/libc/src/stdfix/bitsuhk.h
@@ -1,4 +1,5 @@
-//===-- Implementation header for bitsuhk ------------------------*- C++ -*-===//
+//===-- Implementation header for bitsuhk ------------------------*- C++
+//-*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
diff --git a/libc/src/stdfix/bitsuhr.cpp b/libc/src/stdfix/bitsuhr.cpp
index 961ce71296..f76df035d1 100644
--- a/libc/src/stdfix/bitsuhr.cpp
+++ b/libc/src/stdfix/bitsuhr.cpp
@@ -1,4 +1,5 @@
-//===-- Implementation of bitsuhr function ---------------------------------===//
+//===-- Implementation of bitsuhr function
+//---------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
diff --git a/libc/src/stdfix/bitsuhr.h b/libc/src/stdfix/bitsuhr.h
index 25108daa1a..0b3719247e 100644
--- a/libc/src/stdfix/bitsuhr.h
+++ b/libc/src/stdfix/bitsuhr.h
@@ -1,4 +1,5 @@
-//===-- Implementation header for bitsuhr ------------------------*- C++ -*-===//
+//===-- Implementation header for bitsuhr ------------------------*- C++
+//-*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
diff --git a/libc/src/stdfix/bitsuk.cpp b/libc/src/stdfix/bitsuk.cpp
index 7d04f72b52..c4e8b53533 100644
--- a/libc/src/stdfix/bitsuk.cpp
+++ b/libc/src/stdfix/bitsuk.cpp
@@ -1,4 +1,5 @@
-//===-- Implementation of bitsuk function ----------------------------------===//
+//===-- Implementation of bitsuk function
+//----------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
diff --git a/libc/src/stdfix/bitsuk.h b/libc/src/stdfix/bitsuk.h
index 2135444a7d..637967946c 100644
--- a/libc/src/stdfix/bitsuk.h
+++ b/libc/src/stdfix/bitsuk.h
@@ -1,4 +1,5 @@
-//===-- Implementation header for bitsuk -------------------------*- C++ -*-===//
+//===-- Implementation header for bitsuk -------------------------*- C++
+//-*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
diff --git a/libc/src/stdfix/bitsulk.cpp b/libc/src/stdfix/bitsulk.cpp
index 83880ee3d9..7ac4d5bc14 100644
--- a/libc/src/stdfix/bitsulk.cpp
+++ b/libc/src/stdfix/bitsulk.cpp
@@ -1,4 +1,5 @@
-//===-- Implementation of bitsulk function ---------------------------------===//
+//===-- Implementation of bitsulk function
+//---------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
diff --git a/libc/src/stdfix/bitsulk.h b/libc/src/stdfix/bitsulk.h
index e4d1df21ae..e7d2d5cad1 100644
--- a/libc/src/stdfix/bitsulk.h
+++ b/libc/src/stdfix/bitsulk.h
@@ -1,4 +1,5 @@
-//===-- Implementation header for bitsulk ------------------------*- C++ -*-===//
+//===-- Implementation header for bitsulk ------------------------*- C++
+//-*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
diff --git a/libc/src/stdfix/bitsulr.cpp b/libc/src/stdfix/bitsulr.cpp
index 5dc222973e..d0ad03c1ec 100644
--- a/libc/src/stdfix/bitsulr.cpp
+++ b/libc/src/stdfix/bitsulr.cpp
@@ -1,4 +1,5 @@
-//===-- Implementation of bitsulr function ---------------------------------===//
+//===-- Implementation of bitsulr function
+//---------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
diff --git a/libc/src/stdfix/bitsulr.h b/libc/src/stdfix/bitsulr.h
index 0b293ff8de..211e4074c5 100644
--- a/libc/src/stdfix/bitsulr.h
+++ b/libc/src/stdfix/bitsulr.h
@@ -1,4 +1,5 @@
-//===-- Implementation header for bitsulr ------------------------*- C++ -*-===//
+//===-- Implementation header for bitsulr ------------------------*- C++
+//-*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
diff --git a/libc/src/stdfix/bitsur.cpp b/libc/src/stdfix/bitsur.cpp
index ed6fdf6dd8..abf6e05cf1 100644
--- a/libc/src/stdfix/bitsur.cpp
+++ b/libc/src/stdfix/bitsur.cpp
@@ -1,4 +1,5 @@
-//===-- Implementation of bitsur function ----------------------------------===//
+//===-- Implementation of bitsur function
+//----------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
diff --git a/libc/src/stdfix/bitsur.h b/libc/src/stdfix/bitsur.h
index 61b0008fd7..ae6f8ac817 100644
--- a/libc/src/stdfix/bitsur.h
+++ b/libc/src/stdfix/bitsur.h
@@ -1,4 +1,5 @@
-//===-- Implementation header for bitsur -------------------------*- C++ -*-===//
+//===-- Implementation header for bitsur -------------------------*- C++
+//-*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.

``````````

</details>


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


More information about the libc-commits mailing list