Skip to content

[Enhancement Request] bitwise operations for value manipulation #122

Open

Description

@ubuntufreakdragon

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions