??? 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. |
Topic | Author | Date |
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 |