[compiler-rt] Add extendhfxf2 into compiler rt (PR #113897)

Alexander Richardson via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 6 07:31:12 PST 2024


================
@@ -0,0 +1,18 @@
+//===-- lib/extendhfxf2.c - half -> long double conversion --------*- 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
+//
+//===----------------------------------------------------------------------===//
+
+#define SRC_HALF
+#define DST_DOUBLE
----------------
arichardson wrote:

Ah if it's nontrivial, then the explicit cast seems fine.

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


More information about the llvm-commits mailing list