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

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

Re: [avr-gcc-list] Initilizing complex const arrays : syntax ?


From: Richard Urwin
Subject: Re: [avr-gcc-list] Initilizing complex const arrays : syntax ?
Date: Mon, 19 Sep 2005 18:49:53 +0100
User-agent: KMail/1.7.2

On Monday 19 Sep 2005 17:11, David Brown wrote:
>...

Nice code.
My other solution would be to put the powers of ten in an array and 
compare them instead of doing the division, but I think your code will 
probably be faster.

It might be possible to merge the two methods and put your bit patterns 
and increments in a constant structure, and then iterate over them. For 
smaller code size with marginal speed penalty.

-- 
Richard Urwin




reply via email to

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