C++编译器是否通过两次操作优化乘以x*2比特移位操作x<<1?
x*2
x<<1
我很乐意相信是的.
c++ compiler-construction optimization
c++ ×1
compiler-construction ×1
optimization ×1