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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/22/04 23:14
Read: times


 
#67221 - RE: Counting bits in C
Responding to: ???'s previous message
First, this isn't in C. But in pseudocode, how about

bitcount = 0
for i = 1 through 8

bitcount = bitcount + register [AND] 01H
rightshift register

endloop


I'll let you translate it into C.


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

Back to Subject List