2 ms·
> I was not aware that they would do such things for division by arbitrary large numbers. They don’t, just 10000 is not large enough :-) But yeah, apparently 3
by Const-me 9y ago
> I was not aware that they would do such things for division by arbitrary large numbers.
They don’t, just 10000 is not large enough :-) But yeah, apparently 32-bit 10k division works on GCC ARM as well: https://godbolt.org/g/ebJqrw https://godbolt.org/g/ebJqrw
> why is TFA worried about the speed of itoa?
Because itoa is slow.
I once needed to read / write large (100MB+) G-code files. Profiler showed me it spent majority of time in standard library routines like itoa / atof / etc.
Replacing itoa with http://fmtlib.net http://fmtlib.net lead to much faster code.