[libc-commits] [libc] 08c115d - [libc] Enable intermediate computation in float for baremetal (#163829)

via libc-commits libc-commits at lists.llvm.org
Thu Oct 16 11:57:05 PDT 2025


Author: Petr Hosek
Date: 2025-10-16T11:57:00-07:00
New Revision: 08c115d1f8a60ffb1b1a1aedbb63fe8e87d7787a

URL: https://github.com/llvm/llvm-project/commit/08c115d1f8a60ffb1b1a1aedbb63fe8e87d7787a
DIFF: https://github.com/llvm/llvm-project/commit/08c115d1f8a60ffb1b1a1aedbb63fe8e87d7787a.diff

LOG: [libc] Enable intermediate computation in float for baremetal (#163829)

This can improve performance on 32-bit baremetal targets.

Added: 
    

Modified: 
    libc/config/baremetal/config.json

Removed: 
    


################################################################################
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": {


        


More information about the libc-commits mailing list