[libc-commits] [libc] [libc][float_dec_converter_limited] Add missing LIBC_INLINE (PR #125655)
via libc-commits
libc-commits at lists.llvm.org
Tue Feb 4 01:18:11 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Simon Tatham (statham-arm)
<details>
<summary>Changes</summary>
This caused a build failure in check-libc introduced by commit b53da77c505a2d3.
---
Full diff: https://github.com/llvm/llvm-project/pull/125655.diff
1 Files Affected:
- (modified) libc/src/stdio/printf_core/float_dec_converter_limited.h (+1-1)
``````````diff
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;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/125655
More information about the libc-commits
mailing list