mpaland/printf

Avoid geneal-case division and modulus in _ntoa functions

eyalroz opened this issue · 0 comments

@mickjc750 suggests:

In the ntoa(), I'd recommend using literal values %2 %8 %10 %16 rather than
%base, as it saves performing a division. It's a minor size increase for a
big performance increase.

Sounds like a plan.