How to reverse bitwise AND (&) in C ?

Posted by VaioIsBorn on Stack Overflow See other posts from Stack Overflow or by VaioIsBorn
Published on 2010-04-02T10:49:43Z Indexed on 2010/04/02 10:53 UTC
Read the original article Hit count: 145

Filed under:
|
|

For example i have an operation in C like this:

((unsigned int)ptr & 0xff000000))

The result is bf000000. What do i need at this moment is how to reverse the above i.e. determine the ptr by using the result from the operation and offcourse 0xff000000 . I am asking if there's any simple way to implement this in C, tnx.

© Stack Overflow or respective owner

Related posts about c

    Related posts about bitwise-operations