Skip to content

Instantly share code, notes, and snippets.

@blaquee
Created June 10, 2013 06:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blaquee/5746845 to your computer and use it in GitHub Desktop.
Save blaquee/5746845 to your computer and use it in GitHub Desktop.
EndianSwap short
inline uint16_t EndianSwap16(uint16_t num)
{
return (num>>8) | (num<<8);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment