Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/19/01 17:52
Read: times


 
#15060 - RE: Counting bits
But the best way is this !

bit par16best( unsigned int w )
{
ACC = (w^(w>>8));
return P ;

The compiler I have does not do the best possible optimization. It should optimize to this:
MOV A,R5
XRL A,R4
MOV C,P

List of 8 messages in thread
TopicAuthorDate
Counting bits            01/01/70 00:00      
RE: Counting bits            01/01/70 00:00      
RE: Counting bits            01/01/70 00:00      
RE: Counting bits            01/01/70 00:00      
RE: Counting bits            01/01/70 00:00      
RE: Counting bits            01/01/70 00:00      
RE: Counting bits            01/01/70 00:00      
RE: Counting bits            01/01/70 00:00      

Back to Subject List