[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 |
User-agent: |
|
URL:
<http://savannah.nongnu.org/patch/?func=detailitem&item_id=3729>
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
_______________________________________________________
Details:
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.
<http://savannah.nongnu.org/patch/download.php?item_id=3729&item_file_id=4164>
_______________________________________________________
This item URL is:
<http://savannah.nongnu.org/patch/?func=detailitem&item_id=3729>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/