Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement Request] bitwise operations for value manipulation #122

Open
ubuntufreakdragon opened this issue Jun 23, 2018 · 0 comments
Open

Comments

@ubuntufreakdragon
Copy link

some values are bitmasks for flags
e.g.
some science experiment has the values
situationMask and biomMask representing the allowed places for experiment execution and whether there are different results in different bioms.
where
1 landed
2 splashed
4 low atmosphere
8 high atmosphere
16 low space
32 high space
for manipulating these I need bitwise 'or' and 'and' ('|' '&')
because 12 + 16 == 28 == 12 | 16 but 12 + 24 == 36 == 32 + 4 != 16 | 8 | 4 == 12 | 16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant