• Advertisement

Archived

This topic is now archived and is closed to further replies.

using bit flags

This topic is 5532 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

if using bit flags with bitwise operators, how do we have more than 64 bits on one "variable"? ie: uint64 status_flags = 0; FLAG1 0x0000000 FLAG2 0x0000001 FLAG3 0x0000002 FLAG4 0x0000004 FLAG5 0x0000008 FLAG6 0x0000010 ... FLAG63 0x8000000 status_flags = status_flags | FLAG2; if(status_flags & FLAG2) { } so how to go bigger and/or is there a better way to handle flags?

Share this post


Link to post
Share on other sites
Advertisement
It is unlikely that you would ever need more then 64 bitflags.

Share this post


Link to post
Share on other sites

  • Advertisement