Probably non-applicable with today’s CPU architectures and compilers, but traditionally bitwise operations used to be significantly faster than multiply operations, which is why you see bitwise operations all over the place in graphics/DSP C/C++ code.
Just for kicks, I put these operations into godbolt and it seems the gcc compiler is smart enough to make them make them both use arithmetic shifts (sal) in x86-64 assembly.