Created
November 27, 2014 11:05
-
-
Save rubenfonseca/62271ea10a5c9a7ed794 to your computer and use it in GitHub Desktop.
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 swap16(unsigned arg) | |
{ | |
return ((arg >> 8) & 0x00FF) | ((arg << 8) & 0xFF00); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment