Skip to content

位运算的请教 #80

Answered by Codesire-Deng
KleinSteven asked this question in Q&A
Discussion options

You must be logged in to vote

这是因为 user_data_type 只需用到最低的 3 个 bits,故 user_data & 0b111 足以还原 user_data_type。

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Codesire-Deng
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants