Vote UpVote

Original method to iterate the bits within an integer

Behind the connection – Today, I would like to present you an original way of iterating thru all the bits in an integer. The usual way of iterating the bits is to build a moving bit mask in a loop and selecting each bit in turn with that mask. This works perfectly and it is fast. But today, I want to show you a better looking way of doing the same iteration. The final code is like this: var   OneBit : Boolean;begin
Favorite? Off-Topic? François Piette @ 2013-01-05 22:58


Visits: 20
Votes: 0
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)