[Top][All Lists]

[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

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 

File Attachments

Date: Thu 01/06/2005 at 02:14  Name: strtol.c  Size: 8.74KB   By: None
strtol.c, optimized a little

For detailed info, follow this link:

  Message sent via/by Savannah

reply via email to

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