[libc-commits] [libc] [libc][mathvec] Initial commit for LIBC vector math component (PR #173058)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Fri Jan 9 13:48:34 PST 2026


================
@@ -0,0 +1,21 @@
+//===-- Implementation header for SIMD expf ---------------------*- 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_SRC_MATHVEC_EXPF_H
+#define LLVM_LIBC_SRC_MATHVEC_EXPF_H
+
+#include "src/__support/CPP/simd.h"
+#include "src/__support/macros/config.h"
+
+namespace LIBC_NAMESPACE_DECL {
+
+cpp::simd<float> expf(cpp::simd<float> x);
----------------
michaelrj-google wrote:

I'm not sure, since this is a templated C++ type. We definitely can't put `cpp::simd<float>` in a public header, but given that the call is (afaik) supposed to be generated by the compiler it's possible we can dodge that issue.

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


More information about the libc-commits mailing list