[libc-commits] [libc] [llvm] [libc][math] Refactor hypotf16 to header-only shared math (PR #175438)

Muhammad Bassiouni via libc-commits libc-commits at lists.llvm.org
Sun Jan 11 14:50:16 PST 2026


================
@@ -0,0 +1,64 @@
+//===-- Generic implementation of hypotf16 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
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_SRC___SUPPORT_MATH_HYPOTF16_H
+#define LLVM_LIBC_SRC___SUPPORT_MATH_HYPOTF16_H
+
----------------
bassiounix wrote:

Guard the code with `LIBC_TYPES_HAS_FLOAT16`.

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


More information about the libc-commits mailing list