how to calculate bitwise OR using AND, XOR and shift?

Posted by Flavius on Stack Overflow See other posts from Stack Overflow or by Flavius
Published on 2010-03-14T17:15:43Z Indexed on 2010/03/14 17:25 UTC
Read the original article Hit count: 417

Filed under:
|

Hi

The question seems pretty well formulated

I have a virtual machine which implements only AND, XOR, SHL and SHR, yet I have to do a "OR 0x01" operation.

© Stack Overflow or respective owner

Related posts about bit-manipulation

Related posts about bitwise