How to perform a division AND a modulo at the same time. Is it possible for the processor ?
Like :
int a, b = 8 / 3; //a = 2, b = 2
Or is there an operation which is better than :
int a = 8 / 3;
int b = 8 % 3;
Maybe this is better ?
int a = 8 / 3;
int b = 8 - a * 3;
Thanks.