Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e790c8c7e2
Fetching contributors…

Cannot retrieve contributors at this time

10 lines (7 sloc) 0.272 kb
/* Generic macros */
/* Word <> two chars. Works both ways */
#define LOBYTE(x) ((char*)(&(x)))[0]
#define HIBYTE(x) ((char*)(&(x)))[1]
/* Bit set/clear */
#define bitset(var, bitno) ((var) |= 1 << (bitno))
#define bitclr(var, bitno) ((var) &= ~(1 << (bitno)))
Jump to Line
Something went wrong with that request. Please try again.