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



