[libc-commits] [libc] [libc][mathvec] Initial commit for LIBC vector math component (PR #173058)
Schrodinger ZHU Yifan via libc-commits
libc-commits at lists.llvm.org
Wed Jan 14 07:26:45 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)) {
----------------
SchrodingerZhu wrote:
Not sure if OpenMP declare stuff can be used here? It would be nice if clang provide facilities for us mangle the name properly. It seems hard to use plain copy-paste macro to generate correct naming in this case.
https://github.com/llvm/llvm-project/pull/173058
More information about the libc-commits
mailing list