[libc-commits] [libc] 3a8f697 - [libc][math] Enable math acos for baremetal Arm and AArch64 (#166749)

via libc-commits libc-commits at lists.llvm.org
Fri Nov 7 01:23:04 PST 2025


Author: Victor Campos
Date: 2025-11-07T09:23:00Z
New Revision: 3a8f6979cef26ceb5ef5c6b8dba1fc1fd770c44c

URL: https://github.com/llvm/llvm-project/commit/3a8f6979cef26ceb5ef5c6b8dba1fc1fd770c44c
DIFF: https://github.com/llvm/llvm-project/commit/3a8f6979cef26ceb5ef5c6b8dba1fc1fd770c44c.diff

LOG: [libc][math] Enable math acos for baremetal Arm and AArch64 (#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.

Added: 
    

Modified: 
    libc/config/baremetal/aarch64/entrypoints.txt
    libc/config/baremetal/arm/entrypoints.txt

Removed: 
    


################################################################################
diff  --git a/libc/config/baremetal/aarch64/entrypoints.txt b/libc/config/baremetal/aarch64/entrypoints.txt
index ab0ac7cdbb17a..049adb34d9d79 100644
--- a/libc/config/baremetal/aarch64/entrypoints.txt
+++ b/libc/config/baremetal/aarch64/entrypoints.txt
@@ -320,6 +320,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 96afb8870f2ba..2444ec5feff01 100644
--- a/libc/config/baremetal/arm/entrypoints.txt
+++ b/libc/config/baremetal/arm/entrypoints.txt
@@ -323,6 +323,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