i have a three dimensional array which i am using as a bit table
char bit_table_[X][Y][Z];
X is not larger than 20 but Y and Z will be very large.
the contents of every X’s Y and Z will be compared parallely as follows (here real values of Y and Z will be computed using some hash functions).
My problem is; I don’t know if there is any way at all to tell as to which of the X’s give true in the condition checking of the if statment
if (((bit_table_[0][i][bit_index / bits_per_char]|
bit_table_[1][i][bit_index / bits_per_char])& bit_mask[bit]) != bit_mask[bit])
return true;
or is there anyother way of doing it?
You have to test them individually to know which one resulted in true. Here is an example using a logical rather than bitwise OR to determine which one resulted in true.
Edit:
To expand on the previous example, and to satisfy the results of your original post you could also check if the combination of both is the reason it passes like so: