[libc-commits] [libc] [libc][float_dec_converter_limited] Add missing LIBC_INLINE (PR #125655)

Simon Tatham via libc-commits libc-commits at lists.llvm.org
Tue Feb 4 01:16:28 PST 2025


https://github.com/statham-arm created https://github.com/llvm/llvm-project/pull/125655

This caused a build failure in check-libc introduced by commit b53da77c505a2d3.

>From 405f2a215b3ce4dd7feaf4549d7c99a010f912bf Mon Sep 17 00:00:00 2001
From: Simon Tatham <simon.tatham at arm.com>
Date: Tue, 4 Feb 2025 09:12:29 +0000
Subject: [PATCH] [libc][float_dec_converter_limited] Add missing LIBC_INLINE

This caused a build failure in check-libc introduced by commit
b53da77c505a2d3.
---
 libc/src/stdio/printf_core/float_dec_converter_limited.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libc/src/stdio/printf_core/float_dec_converter_limited.h b/libc/src/stdio/printf_core/float_dec_converter_limited.h
index 22803884526e25..a98e6cdaa0db7e 100644
--- a/libc/src/stdio/printf_core/float_dec_converter_limited.h
+++ b/libc/src/stdio/printf_core/float_dec_converter_limited.h
@@ -112,7 +112,7 @@ struct DigitsOutput {
 // 1292913986/2^32. That is a rounded-down approximation to log10(2), accurate
 // enough that for any binary exponent in the range of float128 it will give
 // the correct value of floor(log10(2^n)).
-int estimate_log10(int exponent_of_2) {
+LIBC_INLINE int estimate_log10(int exponent_of_2) {
   return (exponent_of_2 * 1292913986LL) >> 32;
 }
 



More information about the libc-commits mailing list