[libc-commits] [libc] [llvm] [libc][math] Implement acoshbf16 function (PR #236475)

via libc-commits libc-commits at lists.llvm.org
Mon Nov 2 01:00:25 PST 2026


================
@@ -0,0 +1,36 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+///
+/// \file
+/// Tests every valid positive bfloat16 input against MPFR across all
+/// supported floating-point rounding modes.
+///
+//===----------------------------------------------------------------------===//
+
+#include "src/__support/FPUtil/bfloat16.h"
+#include "src/math/acoshbf16.h"
+#include "test/UnitTest/FPMatcher.h"
+#include "test/UnitTest/Test.h"
+#include "utils/MPFRWrapper/MPFRUtils.h"
+
+using LlvmLibcAcoshBf16Test = LIBC_NAMESPACE::testing::FPTest<bfloat16>;
+
+namespace mpfr = LIBC_NAMESPACE::testing::mpfr;
+
+// Domain: [1, +Inf]
+// The first 31 inputs above 1 exercise the polynomial fast path.
----------------
Sukumarsawant wrote:

is this comment needed ?

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


More information about the libc-commits mailing list