Follow-up Comment #8, patch #3729 (project avr-libc): Georg-Johann Lay rewrite ultoa() function by inlining division 32:8. In result the total size and speed are improved. See the discussion on 'avr-gcc-list'.
In contrast to dmix's fast function the Georg-Johann Lay's variant is work with all possible bases. Changes are (in comparison to original): 1. ltoa() calls ultoa() (extra entry). 2. Small optimization: initialization of bits counter is excluded (32*8=256). 3. This is debatable: run time radix check. The cost is only 5 words, but there is no risk of overhead in case variable radix. Thougths? (file #26206) _______________________________________________________ Additional Item Attachment: File name: ltoa-2012.tar.gz Size:3 KB _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/patch/?3729> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/ _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-libc-dev