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

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

Re: [avr-gcc-list] dev and mod may not be optimized


From: Gre7g Luterman
Subject: Re: [avr-gcc-list] dev and mod may not be optimized
Date: Wed, 12 Dec 2007 07:52:04 -0800 (PST)

--- Paulo Marques <address@hidden> wrote:
> Actually after a few more digging, we can do this
> all in plain C, by 
> using a smaller reciprocal multiplier:

<snipped>

Wow, that's freakin' inspired!  And you're right it
does optimize nicely.  Here's a 20 byte version that
executes in 12 cycles:
http://pastie.textmate.org/127541

Gre7g

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




reply via email to

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