[libc-commits] [libc] [libc][math][c23] Add acoshf16 C23 math function. (PR #130588)
Harrison Hao via libc-commits
libc-commits at lists.llvm.org
Tue Mar 18 09:15:22 PDT 2025
================
@@ -0,0 +1,29 @@
+//===-- Unittests for acoshf16 --------------------------------------------===//
+//
+// 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/FPBits.h"
+#include "src/__support/FPUtil/cast.h"
+#include "src/errno/libc_errno.h"
+#include "src/math/acoshf16.h"
+#include "test/UnitTest/FPMatcher.h"
+#include "utils/MPFRWrapper/MPFRUtils.h"
+#include <stdint.h>
+
+using LlvmLibcAcoshf16Test = LIBC_NAMESPACE::testing::FPTest<float16>;
+namespace mpfr = LIBC_NAMESPACE::testing::mpfr;
+
+static constexpr uint16_t START = 0x3c00U;
+static constexpr uint16_t STOP = 0x7bffU;
----------------
harrisonGPU wrote:
Sorry, I think you're right, I was wrong.
https://github.com/llvm/llvm-project/pull/130588
More information about the libc-commits
mailing list