[libc-commits] [libc] [libc][math] Speed up log2f subnormals and log10f table access (PR #223718)
via libc-commits
libc-commits at lists.llvm.org
Wed Sep 16 01:16:49 PDT 2026
================
@@ -65,7 +65,7 @@ LIBC_INLINE float log10f(float x) {
using namespace common_constants_internal;
constexpr double LOG10_2 = 0x1.34413509f79ffp-2;
// Lookup table for -log10(r) where r is defined in common_constants.cpp.
- constexpr double LOG10_R[128] = {
+ static constexpr double LOG10_R[128] = {
----------------
sriramshastry wrote:
Sure.
https://github.com/llvm/llvm-project/pull/223718
More information about the libc-commits
mailing list