Create a single mask to check if bits are set, unset or accept either

后端 未结 0 666
不思量自难忘°
不思量自难忘° 2021-02-01 15:58

Given a value, I want to check if some of its bits are set and some of them unset at the same time, while I don\'t care about the value of others.

I can do this with two

相关标签:
回答
  • 消灭零回复
提交回复
热议问题