Mercurial > vba-linux
view src/win32/7zip/7z/C/HuffEnc.h @ 2:3549bbe597ed
adding makefile.am
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:31:47 -0600 |
parents | f9f4f1b99eed |
children |
line wrap: on
line source
1 /* HuffEnc.h -- functions for Huffman encoding2 2008-03-263 Igor Pavlov4 Public domain */6 #ifndef __HUFFENC_H7 #define __HUFFENC_H9 #include "Types.h"11 /*12 Conditions:13 num <= 1024 = 2 ^ NUM_BITS14 Sum(freqs) < 4M = 2 ^ (32 - NUM_BITS)15 maxLen <= 16 = kMaxLen16 Num_Items(p) >= HUFFMAN_TEMP_SIZE(num)17 */19 void Huffman_Generate(const UInt32 *freqs, UInt32 *p, Byte *lens, UInt32 num, UInt32 maxLen);21 #endif