int i=3;
int doubleThruShift = i<<1;
int doubleThruMul = i*2;
How fast is computing line 2 compared to computing line 3? Is the performance boost worth it , if we use left shift to multiply by 2?
int i=3;
int doubleThruShift = i<<1;
int doubleThruMul = i*2;
How fast is computing line 2 compared to computing line 3? Is the performance boost worth it , if we use left shift to multiply by 2?