如果除法运算中的除数是2的幂,我们对这个除法运算还可以进一步优化,编译器会使用移位运算来进行这种除法运算。
We can make a division more optimized if the divisor in a division operation is a power of two. The compiler USES a shift to perform the division.
如果除法运算中的除数是2的幂,我们对这个除法运算还可以进一步优化,编译器会使用移位运算来进行这种除法运算。
We can make a division more optimized if the divisor in a division operation is a power of two. The compiler USES a shift to perform the division.
应用推荐