Quote Originally Posted by keithdoxey View Post
Just a guess that the & is a Logical AND and that the # is used as an indicator for binary so the the variable d[0] is being masked to get bits 0-2 in the first case and bit three in the second case. eg (d[0] AND 7) -(d[0] AND 8)

Of course I could be way off base LOL
Using the binary numbers as a mask is a good guess. I'm not a math expert. When the term logical is used, what exactly does it mean?