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

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

[avr-libc-dev] [patch #3618] Optimization strtol(), a little.


From: anonymous
Subject: [avr-libc-dev] [patch #3618] Optimization strtol(), a little.
Date: Thu, 06 Jan 2005 02:36:41 -0500
User-agent:

This mail is an automated notification from the patch tracker
 of the project: AVR C Runtime Library.




/**************************************************************************/
[patch #3618] Full Item Snapshot:

URL: <http://savannah.nongnu.org/patch/?func=detailitem&item_id=3618>
Project: AVR C Runtime Library
Submitted by: 0
On: Thu 01/06/2005 at 02:14

Category:  None
Priority:  1 - Later
Resolution:  None
Privacy:  Public
Assigned to:  None
Originator Email:  address@hidden
Status:  Open


Summary:  Optimization strtol(), a little.

Original Submission:  It is possible to speed up strtol() by excluding division 
operation for most common bases (10,16,8 and, may be, 2). I have attempt do it.

In result the quantity of clocks for `strtol("12345",0,0)' has decreased with 
1680 up to 720. Use of a stack has decreased on 32 bytes. The size of a code 
has remained practically same: 291 -> 294 words. (avr-gcc 3.3.4, atmega8, -Os 
-frename-registers).





File Attachments
-------------------

-------------------------------------------------------
Date: Thu 01/06/2005 at 02:14  Name: strtol.c  Size: 8.74KB   By: None
strtol.c, optimized a little
http://savannah.nongnu.org/patch/download.php?item_id=3618&amp;item_file_id=4001






For detailed info, follow this link:
<http://savannah.nongnu.org/patch/?func=detailitem&item_id=3618>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/







reply via email to

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