[libc-commits] [libc] [llvm] [libc][math] Implement half precision lgamma function (PR #192834)

via libc-commits libc-commits at lists.llvm.org
Fri May 15 17:52:13 PDT 2026


================
@@ -0,0 +1,27 @@
+//===-- Shared lgammaf16 function -------------------------------*- 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
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_SHARED_MATH_LGAMMAF16_H
+#define LLVM_LIBC_SHARED_MATH_LGAMMAF16_H
+
+#ifdef LIBC_TYPES_HAS_FLOAT16
----------------
lntue wrote:

you need to include `"include/llvm-libc-macros/float16-macros.h"` before testing this macro.

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


More information about the libc-commits mailing list