Skip to content

Conversation

@petrhosek
Copy link
Member

This can improve performance on 32-bit baremetal targets.

This can improve performance on 32-bit baremetal targets.
@petrhosek petrhosek requested review from Prabhuk and lntue October 16, 2025 17:32
@petrhosek petrhosek added the libc label Oct 16, 2025
@llvmbot
Copy link
Member

llvmbot commented Oct 16, 2025

@llvm/pr-subscribers-libc

Author: Petr Hosek (petrhosek)

Changes

This can improve performance on 32-bit baremetal targets.


Full diff: https://github.com/llvm/llvm-project/pull/163829.diff

1 Files Affected:

  • (modified) libc/config/baremetal/config.json (+1-1)
diff --git a/libc/config/baremetal/config.json b/libc/config/baremetal/config.json
index d76ffca6056fd..e3703c28865bb 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 | LIBC_MATH_NO_ERRNO)"
+      "value": "(LIBC_MATH_SKIP_ACCURATE_PASS | LIBC_MATH_SMALL_TABLES | LIBC_MATH_NO_ERRNO | LIBC_MATH_INTERMEDIATE_COMP_IN_FLOAT)"
     }
   },
   "general": {

@petrhosek petrhosek merged commit 08c115d into llvm:main Oct 16, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants