[libc-commits] [libc] [llvm] [libc][math] Refactor tanpif16 to header-only (PR #181240)
Muhammad Bassiouni via libc-commits
libc-commits at lists.llvm.org
Mon Feb 16 02:16:41 PST 2026
================
@@ -0,0 +1,126 @@
+//===-- Implementation header for tanpif16 ----------------------*- 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_SRC___SUPPORT_MATH_TANPIF16_H
+#define LLVM_LIBC_SRC___SUPPORT_MATH_TANPIF16_H
+#include "include/llvm-libc-macros/float16-macros.h"
+#ifdef LIBC_TYPES_HAS_FLOAT16
----------------
bassiounix wrote:
```suggestion
#ifndef LLVM_LIBC_SRC___SUPPORT_MATH_TANPIF16_H
#define LLVM_LIBC_SRC___SUPPORT_MATH_TANPIF16_H
#include "include/llvm-libc-macros/float16-macros.h"
#ifdef LIBC_TYPES_HAS_FLOAT16
```
https://github.com/llvm/llvm-project/pull/181240
More information about the libc-commits
mailing list