We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4be35fd commit 5afb31dCopy full SHA for 5afb31d
libc/src/stdio/printf_core/float_dec_converter_limited.h
@@ -112,7 +112,7 @@ struct DigitsOutput {
112
// 1292913986/2^32. That is a rounded-down approximation to log10(2), accurate
113
// enough that for any binary exponent in the range of float128 it will give
114
// the correct value of floor(log10(2^n)).
115
-int estimate_log10(int exponent_of_2) {
+LIBC_INLINE int estimate_log10(int exponent_of_2) {
116
return (exponent_of_2 * 1292913986LL) >> 32;
117
}
118
0 commit comments