avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] [patch #3729] Printf for integers speed up


From: Dmitry Xmelkov
Subject: [avr-libc-dev] [patch #3729] Printf for integers speed up
Date: Sun, 15 Jul 2012 09:46:28 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:2.0.1) Gecko/20110328 Firefox/4.0.1

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]