Make format_decimal inline.

This commit is contained in:
Victor Zverovich 2014-08-01 08:49:16 -07:00
parent 3390a9510e
commit 58dfe5c9f7

View File

@ -484,7 +484,7 @@ extern const char DIGITS[];
// Formats a decimal unsigned integer value writing into buffer.
template <typename UInt, typename Char>
void format_decimal(Char *buffer, UInt value, unsigned num_digits) {
inline void format_decimal(Char *buffer, UInt value, unsigned num_digits) {
--num_digits;
while (value >= 100) {
// Integer division is slow so do it for a group of two digits instead