J
Jirka Klaue
Sidney said:pete wrote: .... ....
Your solution is quite a clever thing;
It's not "his" solution. Try a web search for "kernighan bit count" or go
directly to http://graphics.stanford.edu/~seander/bithacks.html
Jirka