[libc-commits] [libc] [libc] Enable intermediate computation in float for baremetal (PR #163622)

Petr Hosek via libc-commits libc-commits at lists.llvm.org
Wed Oct 15 12:58:10 PDT 2025


https://github.com/petrhosek created https://github.com/llvm/llvm-project/pull/163622

This can improve performance on 32-bit baremetal targets.

>From fea497819c54f7d9abc606b30db0a0310495b70a Mon Sep 17 00:00:00 2001
From: Petr Hosek <phosek at google.com>
Date: Wed, 15 Oct 2025 12:56:40 -0700
Subject: [PATCH] [libc] Enable intermediate computation in float for baremetal

This can improve performance on 32-bit baremetal targets.
---
 libc/config/baremetal/config.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libc/config/baremetal/config.json b/libc/config/baremetal/config.json
index 796b1d8ed1398..ffb4fe6487fdc 100644
--- a/libc/config/baremetal/config.json
+++ b/libc/config/baremetal/config.json
@@ -36,7 +36,7 @@
   },
   "math": {
     "LIBC_CONF_MATH_OPTIMIZATIONS": {
-      "value": "(LIBC_MATH_SKIP_ACCURATE_PASS | LIBC_MATH_SMALL_TABLES)"
+      "value": "(LIBC_MATH_SKIP_ACCURATE_PASS | LIBC_MATH_SMALL_TABLES | LIBC_MATH_INTERMEDIATE_COMP_IN_FLOAT)"
     }
   },
   "general": {



More information about the libc-commits mailing list