mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-02 11:28:20 +00:00
Make format_decimal inline.
This commit is contained in:
parent
3390a9510e
commit
58dfe5c9f7
2
format.h
2
format.h
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user