On 09/11/2009, at 10:55 PM, Alastair Houghton wrote:
It's pretty easy to do a bit count on a fixed-size word (no need for a loop, in fact).
There are some examples of how to do this here, including some really, really clever methods. Is this what you had in mind Alastair?
http://gurmeetsingh.wordpress.com/2008/08/05/fast-bit-counting-routines/ --Graham _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com