How to use shift to realize multiplication and division in C language
This article mainly shows you "how C language uses shift to realize multiplication and division". The content is easy to understand and clear. I hope it can help you solve your doubts. Let me lead you to study and learn the article "how C language uses shift to realize multiplication and division".
Shift to realize multiplication and division
A = a * 4x b = b / 4x = > a = a > 2
Description: usually multiplied or divided by 2n, you can use shift instead.
A = a * 9 position = > a = (a)