Last active
December 11, 2015 10:05
-
-
Save retokromer/f481f5168fad0c797517 to your computer and use it in GitHub Desktop.
Unsigned Binary to Gray
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
unsigned int Bin_to_Gray(unsigned int b) { | |
return b ^ (b >> 1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment