lets say i have the following variable data=0xab12cd30 i would like to get the xor over the 32 bits (for example in verilog ^data)
for example (giving 8bit examples)
data = 0x11 -> result should be 0
data = 0x10 -> result shoule be 1
data = 0x21 -> result should be 0
data = 0x23 -> result should be 1
What is the easiest way? Using Python 2.4.3
xorby what?