using bit flags
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?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement