This is the 21st century. Modern hardware and compilers know how to produce highly optimised code. Writing multiplication using shifts won't help performance but it will help you to produce code with bugs in.
You have demonstrated this yourself with code that multiplies by 12 rather than 10.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…