View Single Post
Abhinash
Senior Member
Join Date: Jan 2015
Location: India,kolkata
Old 09-19-2021 , 10:58   Re: [TUT] Bits, Bit-fields, and Bit-wise Operators
Reply With Quote #100

Quote:
Originally Posted by fysiks View Post
"round type" sounds like something that has mutually exclusive values (i.e. two or more round types cannot be active at the same time). If this is true, then you shouldn't be using bits for storing these values, you should use an integer-based enum.
Ofcourse not. Both of them are not active at the same time. Only one at a time. And that is also reset at the round end to g_roundtype = R_NONE where value of R_NONE in the left bit shifting enum is '0'.
Abhinash is offline