[libc-commits] [libc] [llvm] [libc][math] Refactor f16fmaf128 to Header Only (PR #177850)
via libc-commits
libc-commits at lists.llvm.org
Tue Jan 27 06:32:34 PST 2026
================
@@ -1,29 +1,30 @@
-//===-- Shared dfmaf128 function --------------------------------*- C++ -*-===//
+//===-- Shared f16fmaf128 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_DFMAF128_H
-#define LLVM_LIBC_SHARED_MATH_DFMAF128_H
+#ifndef LLVM_LIBC_SHARED_MATH_F16FMAF128_H
+#define LLVM_LIBC_SHARED_MATH_F16FMAF128_H
#include "include/llvm-libc-types/float128.h"
+#include "shared/libc_common.h"
#ifdef LIBC_TYPES_HAS_FLOAT128
-#include "shared/libc_common.h"
-#include "src/__support/math/dfmaf128.h"
+
+#include "src/__support/math/f16fmaf128.h"
----------------
Sukumarsawant wrote:
#include "include/llvm-libc-macros/float16-macros.h"
just this i hope
?
also I dont see dmaf128 in my code which is in suggested change
<img width="1149" height="513" alt="image" src="https://github.com/user-attachments/assets/b7dbbee6-e021-40ce-be07-b0fd37df99cd" />
so the only things i did is to add macro for float16
also i hope common.h is still needed
https://github.com/llvm/llvm-project/pull/177850
More information about the libc-commits
mailing list