[libc-commits] [libc] [libc][mathvec][aarch64] Add AdvSIMD optimised expf (PR #206776)
via libc-commits
libc-commits at lists.llvm.org
Tue Jul 7 07:25:26 PDT 2026
================
@@ -0,0 +1,33 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+///
+/// \file
+/// This file contains common utilities for AArch64 optimized mathvec functions.
+///
+//===----------------------------------------------------------------------===//
+
+#include "src/__support/CPP/simd.h"
+
+// Type aliases for AdvSIMD vectors.
+using AdvSIMDFP32Vector = LIBC_NAMESPACE::cpp::simd<float, 4>;
+using AdvSIMDFP64Vector = LIBC_NAMESPACE::cpp::simd<double, 2>;
+
+// Returns the ptr, but hides its value from the compiler so accesses through it
+// cannot be optimized based on the contents.
+#define ptr_barrier(ptr) \
----------------
lntue wrote:
I don't think we codify it in any style guide, but I prefer all caps for macro functions.
https://github.com/llvm/llvm-project/pull/206776
More information about the libc-commits
mailing list