General information
Category:
Coding, syntax & commands
>Hi all,
>
>Problem is I need to do do something as a multipple of the bits set on an integer, the integer is a bit array to store statii.
>
>I need to figure out how many bits are set on an integer.
>
>I know I can loop / iterate through the number and bittest / divide by 2 etc.
>
>for now there are not to much so I can do with an ICASE, but I like it generic :)
>
>Any ideas for a fast solution? Something mathematical?
>
Maybe a loop using BitTest()?
Tamar
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only