Skip to content

Instantly share code, notes, and snippets.

@ecere
Created April 8, 2013 04:51
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 ecere/5334309 to your computer and use it in GitHub Desktop.
Save ecere/5334309 to your computer and use it in GitHub Desktop.
#define PUTXWORD(b, w) \
(b)[0] = (byte)(((w) >> 8) & 0xFF); \
(b)[1] = (byte)(((w) ) & 0xFF);
#define GETXWORD(b) (uint16)(((b)[0] << 8) | (b)[1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment