Coding for an embedded platform with no integer divisor (nor multiplier), is there a quick way to perform a 'divide by 24'?
Multiply by 24 is simply
int a;
int b = (a << 4) + (a << 3); // a*16 + a*8
But division? It's a really simple divisor, with only two bits set?