[libc-commits] [libc] 5afb31d - [libc][float_dec_converter_limited] Add missing LIBC_INLINE (#125655)
via libc-commits
libc-commits at lists.llvm.org
Tue Feb 4 01:20:39 PST 2025
Author: Simon Tatham
Date: 2025-02-04T09:20:36Z
New Revision: 5afb31dbd6f7aa745dd826128f6f224dc49031c0
URL: https://github.com/llvm/llvm-project/commit/5afb31dbd6f7aa745dd826128f6f224dc49031c0
DIFF: https://github.com/llvm/llvm-project/commit/5afb31dbd6f7aa745dd826128f6f224dc49031c0.diff
LOG: [libc][float_dec_converter_limited] Add missing LIBC_INLINE (#125655)
This caused a build failure in check-libc introduced by commit
b53da77c505a2d3.
Added:
Modified:
libc/src/stdio/printf_core/float_dec_converter_limited.h
Removed:
################################################################################
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 22803884526e251..a98e6cdaa0db7e4 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