Skip to content

Instantly share code, notes, and snippets.

@davidreynolds
Created June 30, 2012 20:27
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 davidreynolds/3025370 to your computer and use it in GitHub Desktop.
Save davidreynolds/3025370 to your computer and use it in GitHub Desktop.
void encode(void)
{
...
while (r < bufferend) {
...
if (y <= P) output1(c);
else output2(x & (N - 1), y - 2);
...
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment