xor 'ing something longer than a byte ?

Hello everyone, could you provide me a shove in the right direction please regarding XOR'ing

i have a bit of code that XOR's two bytes together, and it works fine, but how do i get around the issue if i want to use 2 bytes ?

so obviously i can do
1,2,4,8,16,32,64,128 But i cant do any higher e.g 256... should i use a shift register ?
or is there another way i can tackle this ?
Thanks

Mutley

What do you mean by XOR? Are you XOR'ing every individual bit, which is trivial to extend to longer numbers (since XOR does not involve carrying or borrowing), or doing some sort of tapped shift register? You may need to show your code.

Is XOR limited to bytes, I ask myself, or can it be used with any unsigned integer ?

unsigned int a = 0b0100000000000000;
unsigned int b = 0b1000000000000000;

void setup() 
{
  Serial.begin(115200);
  Serial.println(a ^ b, BIN);
}

void loop() 
{
}