Well I am not to familiar with the intel instruction set, I was just making the point that bit shifting operations are available in C, MacNilly mentioned these instructions so I assumed they are appropiate, and you may well be able to find a solution incorperating them.Originally Posted by itsme86
Any way the fact they slap bit back on the end like a conveyer belt would not be an issue in anycase because you only test each bit once, there is a loop counter which counts the number of bits being tested so its not a problem at all.