[libc-commits] [libc] [libc][math] Optimize exp2f and exp10f hot paths (PR #224178)

via libc-commits libc-commits at lists.llvm.org
Fri Sep 25 07:33:54 PDT 2026


================
@@ -20,65 +20,50 @@
 namespace LIBC_NAMESPACE_DECL {
 namespace math {
 
-LIBC_INLINE float exp10f(float x) {
+LIBC_INLINE static float exp10f_mid(float x) {
----------------
lntue wrote:

Can you remove `static` from these functions, only keep `LIBC_INLINE`.  And/or maybe use `LIBC_ALWAYS_INLINE` for `exp10f_mid` if needed?

https://github.com/llvm/llvm-project/pull/224178


More information about the libc-commits mailing list