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

via libc-commits libc-commits at lists.llvm.org
Sat Nov 9 11:55:27 PST 2024


================
@@ -0,0 +1,53 @@
+//===-- Utility class to test int to fixed point conversions ----*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "test/UnitTest/Test.h"
+
+#include "include/llvm-libc-types/stdfix-types.h"
+#include "src/__support/CPP/bit.h"
+#include "src/__support/fixed_point/fx_bits.h"
+template <typename T, typename XType>
----------------
lntue wrote:

nit: add an empty line to separate them.

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


More information about the libc-commits mailing list