Where '-' denotes negative x and '&' denotes bitwise I.
The numbers are in an 8-bit complement in the program, and I can not find the correlation between inputs and outputs.
8 & (-8) = 8
7 & (-7) = 1
97 & (-97) = 1
So, is value possible in bit manipulation?
0000 1000 & (1111 1000) = 0000 1000
0000 0111 & (1111 1001) = 0000 0001
0110 0001 & (1001 1111) = 0000 0001
In each of the above cases, the upper 4-bits always end with 0, but I cannot find a correlation between the inputs and what the lower 4-bits end with.
Any ideas?
ANSWER: Find the least significant bit of a set
source
share