Carter A. answered 05/10/19
Experienced software developer fluent in object oriented C++
In assembler, the fastest method is to shift. It makes no memory reference where dividing by 2 does. Most modern C++ compilers would compile both versions into a simple load - shift - store instruction sequence so I doubt it matters. to find out for sure, write a simple program and look at the assembler it generates.