[libc-commits] [libc] [libc][math][c++23] Add log2bf16 math function (PR #177275)
via libc-commits
libc-commits at lists.llvm.org
Fri Jul 3 23:06:42 PDT 2026
================
@@ -0,0 +1,41 @@
+//===-- Full range tests for BFloat16 log2(x) function --------------------===//
+//
+// 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 "src/__support/FPUtil/bfloat16.h"
+#include "src/math/log2bf16.h"
+#include "test/UnitTest/FPMatcher.h"
+#include "test/UnitTest/Test.h"
+#include "utils/MPFRWrapper/MPFRUtils.h"
+
+using LlvmLibcLogBf16Test = LIBC_NAMESPACE::testing::FPTest<bfloat16>;
----------------
Sukumarsawant wrote:
```suggestion
using LlvmLibcLog2Bf16Test = LIBC_NAMESPACE::testing::FPTest<bfloat16>;
```
https://github.com/llvm/llvm-project/pull/177275
More information about the libc-commits
mailing list