Created
May 1, 2013 22:40
-
-
Save MrPeanutButta/5498958 to your computer and use it in GitHub Desktop.
useful bitflip. designing software DIR-24-8-basic.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* for use with software DIR-24-8-basic. | |
* personal implementation. | |
*/ | |
void flip_state(uint32_t &prefix, uint8_t &position){ | |
prefix = prefix ^ 1<<position; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment