chapter6, Faster with code optimization

In the last ten years, the grammar has changed and it has become faster. Before, I used many references for speeding up, and incorporated a shift operation and a bit operation for speeding up. What about now? For example, use a shift operation to perform a division? In the era of Visual C ++ 2005, even this was unexpectedly faster. But with current compiler and CPU, there is no problem, with division or modulo as usual.

However, bit operations have many uses. For example, an operation that quickly returns the position where a bit is set. I want to use them positively.