Quote Originally Posted by xnihilo View Post
I guess this should do the trick but will these two line be faster that my code in my previous post? I wonder.
My guess is that your original code a couple of posts above would be faster... There's a lot of bit shuffling that goes on with REV and NCD.
Also, what happens if none of the pins are hit? If more than one pin is hit?