Arduino DUE, hardware implement of XOR

mcf3lmnfs:
Is it possible by setting the right registers on Arduino DUE to implement hardware XOR gate

AFAICT no hardware solution, only software.

mcf3lmnfs:
My current settings are to use an Interrupt for each of the pins. So two interrupts

What is issue with that ?

If you read PIOx->PIO_PDSR Inside each interrupt, and decide to set (PIOx->PIO_SODR)/reset (PIOx->PIO_CODR) a pin c whether an XOR operation between pin a and pin b is 1 or 0, this should be pretty fast.

What is pin a and pin b maximum toggling frequency ?