Opposite of Bitwise OR operation

bit-manipulation, bitwise-operators, language-agnostic

Solution

This is impossible.

A simple case to demonstrate my point (assuming a, b, and c are all 1-bit):

If 'b' is 1, 'c' will always be 1, you cannot determine the value of 'a'.

Problem

I compute ``` c = a 'OR' b // bitwise OR operation here ``` Now given only values of `c` and `b` how can I compute the original value of `a`?

Original source