+ 1
Can someone explain me bitsize operators
3 ответов
+ 5
You can start from this one:
https://www.sololearn.com/learn/4070/?ref=app
+ 13
• Multiply by a power of 2
x = x << 1; // x = x * 2
x = x << 6; // x = x * 64
• Divide by a power of 2
x = x >> 1; // x = x / 2
x = x >> 3; // x = x / 8
➝ Remember to use 🔍SEARCH. . . bar to avoid from posting duplicate threads!
• https://www.sololearn.com/learn/4087/?ref=app
• https://www.sololearn.com/learn/4086/?ref=app
• https://code.sololearn.com/cRRF49cpSTq7/?ref=app
+ 2
You can use "x <<= n" to simplify "x = x << n"