1/25/2019 10:19 AM | |
Joined: 9/23/2005 Last visit: 9/11/2024 Posts: 4693 Rating:
|
If you have a basic understanding of the C, you can have a look here and search for counting bits set. My personal favorite: counting bits set in parallel. |
Regards, |
|
This contribution was helpful to
2 thankful Users |
1/25/2019 6:36 PM | |
Joined: 7/7/2010 Last visit: 9/11/2024 Posts: 15174 Rating:
|
Try this untested uncompiled wriiten in a notes app on my phone (away from pc for a bit)
Don’t know if version 0.0 is allowed but it felt appropriate for some reason
|
Last edited by: huggy_d1 at: 1/25/2019 7:36:03 PMFixed bug when no bits are 1 science guy |
|
Follow us on