I have the below code and I can't understand why the last line doesn't return 77594624. Can anyone help me write the inverse bitwise operation to go from 77594624 to 4 and back to 77594624?
Console.WriteLine(77594624); Console.WriteLine((77594624 >> 24) & 0x1F); Console.WriteLine((4 & 0x1F) << 24);
(83886079 >> 24) & 0x1Falso equals4, and so does(77594625 >> 24) & 0x1F. In those examples, I replaced77594624with a different number, but the operation had the same result of4. If the operation was invertible, only one value ofxwould mapf(x) = (x >> 24) & 0x1Fto4.