I have four uint16 named a,b,c,d respectively, and now I'd like to swap them like this:
void swap4(uint16_t &a, uint16_t &b, uint16_t &c, uint16_t &d) {
uint16_t temp = a;
a = b;
b = c;
c = d;
d = temp;
}
Is there anything I can do to speed up this procedure?