Skip to content

Instantly share code, notes, and snippets.

@davidreynolds
Created June 30, 2012 20:23
Show Gist options
  • Select an option

  • Save davidreynolds/3025357 to your computer and use it in GitHub Desktop.

Select an option

Save davidreynolds/3025357 to your computer and use it in GitHub Desktop.
#define EI 11 /* typically 10..13 */
#define EJ 4 /* typically 4..5 */
#define P 1 /* If match length <= P then output one character */
#define N (1 << EI) /* buffer size */
#define F ((1 << EJ) + P) /* lookahead buffer size */
int bit_buffer = 0, bit_mask = 128;
unsigned long codecount = 0, textcount = 0;
unsigned char buffer[N * 2];
FILE *infile, *outfile;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment