Jump to content
  • Advertisement

Archived

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

original vesoljc

using bit flags

This topic is 5706 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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!