Greetings Ron,
you have made, as usual, an excellent point. Having spent hours trying to expalin program legerdeman to Bubba, and being that I have a strong aversion to 3:00 am phone calls,
I wholeheartedly agree with your statement that
QUOTE
technicians who work with your program in the future will bless your name for that ...
However, there are ways to count bits that do not require you to look at every single bit. If only four bits are set, only four loops need to be made. Unless the applicaiton expects that most often a majority of the bits will be set, then on average routines that leverage binary mathematics will execute faster in spite of loop overhead. But the programmer himself must evaluate whether that is necessary or not. If Bubba needs to understand that part of the program, then write it for Bubba. Hell, I was trying to explain my solution above to one of the other engineers here and he didn't get it either.

That should have raised a red flag. I generally try to make easy to read programs, even including extra bits or rungs, but its also hard for me to pass up a challenge. Thanks for the reminder that we should keep those who will have to live with our work in mind when writing a program.
Datman, since you have already created the logic to check each bit, if it were me, I wouldn't bother to revisit the issue. It works, and the gains at this point won't be worth the effort, you already wrote the rungs. I would say just run with it, and rest easy knowing that you at least won't get called in the middle of the night about this part of the program.