avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] Speeding [u]ltoa by 35%


From: Dmitry
Subject: Re: [avr-gcc-list] Speeding [u]ltoa by 35%
Date: Sun, 22 Jul 2012 18:54:01 +1100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17pre) Gecko/20110415 Thunderbird/3.1.10pre

15.07.2012 22:47, Georg-Johann Lay:
[...]
;; Done with the digits: Output SIGN stored above.
cpse SIGN, ZERO
st Z+, BITS
st Z+, SIGN

Patch is sended.

Similarly above the itoa() and utoa() are rewriten.
The attach contains edited variant of this functions with
micro optimization: the bit counter is initialized only once.
The radix is checked at compile time. Nevertheless, the
full variants of utoa() and itoa() functions are leaved in
library for compatibility (if any uses it from asm).

If no objections, I will remove radix check from ltoa/ultoa
and commit both.

Dmitry.



reply via email to

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