On 8/2/2010 2:17 AM, Rob van der Heij wrote:
I've been wondering about the type of algorithms that this instruction was meant for. I know of some cases where you're interested in "any ones" but OC would do that. Or is emphasis on "string" as null-terminated sequence of bytes? But counting bits in a text string does not make much sense either...
Even if there were no practical applications, it's useful for games. You could implement Tic-Tac-Toe or Sudoku games by setting a bit to denote an occupied position, and use the number of bits in the decision logic, where a BM alone wouldn't help. Gerhard Postpischil Bradford, VT
