Skip to content

Instantly share code, notes, and snippets.

@willprice
Created November 24, 2013 12:16
Show Gist options
  • Save willprice/7626602 to your computer and use it in GitHub Desktop.
Save willprice/7626602 to your computer and use it in GitHub Desktop.
Get the number of bits of a type
#define BITSOF(x) (sizeof(x) * 8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment