[Top][All Lists]

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

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

From: anonymous
Subject: [avr-libc-dev] [patch #3729] Printf for integers speed up
Date: Tue, 8 Feb 2005 23:38:05 +0000


                 Summary: Printf for integers speed up
                 Project: AVR C Runtime Library
            Submitted by: None
            Submitted on: Tue 02/08/2005 at 18:38
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: address@hidden
             Open/Closed: Open



Now performance of function `sprintf(s,"%d",12345)' takes more than
7000 clocks. The reason -- division (long) which is required for a
conversion of each digit. I have tried to replace division into more
simple operations. In result this time became 1800 clocks. For 'hex' or
'octal' -- 1000 clocks. The general size has a little decreased.

Detail testing is needed now (9 feb 2005). And it is possible bigger
speed up.


File Attachments:

Date: Tue 02/08/2005 at 18:38  Name: itoa_fast-20050209.tar.gz  Size: 13.7KB 
 By: None
Tarball with sources and test suite. Preliminary.


This item URL is:


  Message sent via/by Savannah

reply via email to

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