[libc-commits] [libc] [libc][math]fadd implementation (PR #99694)
via libc-commits
libc-commits at lists.llvm.org
Fri Jul 19 12:59:51 PDT 2024
================
@@ -0,0 +1,23 @@
+//===-- Implementation of fadd 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/math/fadd.h"
+#include "src/__support/macros/config.h"
+#include "src/__support/FPUtil/generic/add_sub.h"
+#include "src/__support/common.h"
+
+
+namespace LIBC_NAMESPACE_DECL {
+
+LLVM_LIBC_FUNCTION(float, fadd, (double x, double y)) {
+ return fputil::generic::add<float>(x,y);
+
----------------
lntue wrote:
nit: remove extra empty line
https://github.com/llvm/llvm-project/pull/99694
More information about the libc-commits
mailing list