Is it possible to do XOR operation using 32-bit system on a 16 digit number?

391 Views Asked by At

I am trying to perform the bitwise XOR operation on a 32-bit system where both numbers are 16-digit decimals (base 10).

However, the largest unsigned integer number enterable in the 32-bit system is 4,294,967,295. My background isn't really in computational theory. Is there a way I can still do the XOR operation using two 16-digit numbers even though my system is 32-bit?

If not, I assume the only way is to write my own XOR operation?

1

There are 1 best solutions below

0
On

If you convert your $16$ digit numbers to binary they will have about $52$ bits. If you can store the lower $32$ in one variable and the higher ones in another, you can perform the XORs on a chunk of $32$ bits at a time. The XOR does not carry, so you don't have to worry about that. The problem with having the number split in three decimal chunks is the chunks interact to determine the binary expansion. You can't just express each of the three chunks in binary and XOR those.