[libc-commits] [libc] [llvm] [libc][math] Add tgammabf16 math support for bfloat16. (PR #208689)

Victor Campos via libc-commits libc-commits at lists.llvm.org
Fri Jul 17 02:19:23 PDT 2026


================
@@ -0,0 +1,18 @@
+//===-- Implementation of tgammabf16 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/math/tgammabf16.h"
+#include "src/math/tgammabf16.h"
+
+namespace LIBC_NAMESPACE_DECL {
+
+LLVM_LIBC_FUNCTION(bfloat16, tgammabf16, (bfloat16 x)) {
----------------
vhscampos wrote:

Include macros/config.h and common.h for these two macros. Also list them as dependencies in CMake

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


More information about the libc-commits mailing list