Skip to content

Instantly share code, notes, and snippets.

@ybouhjira
Last active January 4, 2016 04:09
Show Gist options
  • Save ybouhjira/8566604 to your computer and use it in GitHub Desktop.
Save ybouhjira/8566604 to your computer and use it in GitHub Desktop.
int month_length(int m)
{
return (0x3bbeecc >> m + m & 3) + 28;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment