[libc-commits] [libc] [libc][math] Enable math acos for baremetal Arm and AArch64 (PR #166749)
Victor Campos via libc-commits
libc-commits at lists.llvm.org
Thu Nov 6 03:26:01 PST 2025
https://github.com/vhscampos created https://github.com/llvm/llvm-project/pull/166749
This patch adds `acos` to the entrypoints of baremetal Arm and AArch64.
Tests have been run with Arm Toolchain for Embedded, a downstream toolchain, in conjunction with qemu, across several configurations of FPUs and architecture versions. All tests run are passing.
>From 74a5c480eeb95a2accf3e1b3d875c35a3eafc44e Mon Sep 17 00:00:00 2001
From: Victor Campos <victor.campos at arm.com>
Date: Tue, 14 Oct 2025 10:33:29 +0100
Subject: [PATCH] [libc][math] Enable math acos for baremetal Arm and AArch64
This patch adds `acos` to the entrypoints of baremetal Arm and AArch64.
Tests have been run with Arm Toolchain for Embedded, a downstream
toolchain, in conjunction with qemu, across several configurations of
FPUs and architecture versions. All tests run are passing.
---
libc/config/baremetal/aarch64/entrypoints.txt | 1 +
libc/config/baremetal/arm/entrypoints.txt | 1 +
2 files changed, 2 insertions(+)
diff --git a/libc/config/baremetal/aarch64/entrypoints.txt b/libc/config/baremetal/aarch64/entrypoints.txt
index 935c95af0d4af..b6650d79f624b 100644
--- a/libc/config/baremetal/aarch64/entrypoints.txt
+++ b/libc/config/baremetal/aarch64/entrypoints.txt
@@ -321,6 +321,7 @@ set(TARGET_LIBM_ENTRYPOINTS
libc.src.fenv.feupdateenv
# math.h entrypoints
+ libc.src.math.acos
libc.src.math.acosf
libc.src.math.acoshf
libc.src.math.asinf
diff --git a/libc/config/baremetal/arm/entrypoints.txt b/libc/config/baremetal/arm/entrypoints.txt
index 82e257c1d2b0d..eedd9f7418f1f 100644
--- a/libc/config/baremetal/arm/entrypoints.txt
+++ b/libc/config/baremetal/arm/entrypoints.txt
@@ -321,6 +321,7 @@ set(TARGET_LIBM_ENTRYPOINTS
libc.src.fenv.feupdateenv
# math.h entrypoints
+ libc.src.math.acos
libc.src.math.acosf
libc.src.math.acoshf
libc.src.math.asinf
More information about the libc-commits
mailing list