Which of the following techniques is the best option for dividing an integer by 2 and why?
Technique 1:
x = x >> 1;
Technique
mod 2, test for = 1. dunno the syntax in c. but this may be fastest.