[libc-commits] [libc] [libc][mathvec] Initial commit for LIBC vector math component (PR #173058)
via libc-commits
libc-commits at lists.llvm.org
Tue Jan 13 09:30:35 PST 2026
================
@@ -0,0 +1,18 @@
+//===-- Single-precision SIMD e^x vector 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/mathvec/expf.h"
+#include "src/__support/mathvec/expf.h"
+
+namespace LIBC_NAMESPACE_DECL {
+
+LLVM_LIBC_FUNCTION(cpp::simd<float>, expf, (cpp::simd<float> x)) {
----------------
lntue wrote:
Do we want to create an `expf` C symbol for this function in the public package `libmvec.a`? If not then `LLVM_LIBC_FUNCTION` macro should be removed, and just use normal function declaration.
https://github.com/llvm/llvm-project/pull/173058
More information about the libc-commits
mailing list