PICmicro & dsPIC >> PICmicro & dsPIC

YT Lee



Reged: Oct 16 2003
Posts: 83
Re: Rotating an array through carry
      Tue Mar 20 2007 10:37 PM

Quote:


Code:

var = (var << 1) | (var >> 7);


will result in:
Code:

rlf _var,w
rlf _var,f


This is a lot more optimized compared to what the standard PICC code generator can produce.




Very interesting. But may I ask, any side effect?

Post Extras Print Post   Remind Me!     Notify Moderator


Entire topic
Subject Posted by Posted on
* Rotating an array through carry MartinLintzgy Tue Mar 20 2007 04:52 PM
. * * Re: Rotating an array through carry luckyAdministrator   Tue Mar 20 2007 10:18 PM
. * * Re: Rotating an array through carry YT Lee   Tue Mar 20 2007 10:37 PM
. * * Re: Rotating an array through carry luckyAdministrator   Tue Mar 20 2007 11:11 PM
. * * Re: Rotating an array through carry MartinLintzgy   Wed Mar 21 2007 08:06 AM
. * * Re: Rotating an array through carry G.Neiss   Wed Mar 21 2007 09:56 AM
. * * Re: Rotating an array through carry jtemplesModerator   Tue Mar 20 2007 05:00 PM

Extra information
1 registered and 131 anonymous users are browsing this forum.

Moderator:  mikerj, jtemples, jeff, Dan Henry, Andrew L 



Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is enabled
      UBBCode is enabled

Rating:
Thread views: 4301

Rate this thread

Jump to

Contact Us | Privacy statement HI-TECH Software

Powered by UBB.threads™ 6.5.5