[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,70 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+/// Smoke tests for acoshbf16.
+///
+/// Verifies boundary values, special floating-point edge cases (NaN, sNaN,
+/// positive/negative infinity, zero), out-of-domain inputs (x < 1.0), and
+/// proper floating-point exception handling (FE_INVALID) along with errno
+/// reporting (EDOM).
+///
+//===----------------------------------------------------------------------===//
+
+#include "hdr/errno_macros.h"
+#include "hdr/fenv_macros.h"
+#include "src/__support/FPUtil/bfloat16.h"
+#include "src/__support/FPUtil/cast.h"
----------------
Sukumarsawant wrote:

is cast needed here ?

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


More information about the libc-commits mailing list