我有一个32-bit数字而不使用for循环,我想将m位设置为 n位.
32-bit
m
n
例如:
m位可以是2nd或5th或9th或10th. n位可以是 22nd或27或11th位.
2nd
5th
9th
10th
22nd
27
11th
我假设(m <n).
请帮帮我.谢谢
c bit-manipulation
bit-manipulation ×1
c ×1