Skip to content

Instantly share code, notes, and snippets.

@MrPeanutButta
Created May 1, 2013 22:40
Show Gist options
  • Save MrPeanutButta/5498958 to your computer and use it in GitHub Desktop.
Save MrPeanutButta/5498958 to your computer and use it in GitHub Desktop.
useful bitflip. designing software DIR-24-8-basic.
/*
* 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