1 // HUFFDE.C Huffman decompression routines
5 * $Header: r:/prj/lib/src/dstruct/rcs/huffde.c 1.1 1994/08/22 17:13:01 rex Exp $
7 * Revision 1.1 1994/08/22 17:13:01 rex
17 // ----------------------------------------------------------------
18 // DECOMPRESS HUFFMAN MULTI-TABLES
19 // ----------------------------------------------------------------
21 // HuffExpandFlashTables() compresses huffman flash-decoder tables.
23 void HuffExpandFlashTables(uchar
*pFlashTab
, ulong lenTab
, ulong
*pc
,
33 runShift
= tokSize
* 8;
35 // While still inside dest table, keep going
37 while (pft
< (pFlashTab
+ lenTab
))
40 // Get next token, extract run count
43 runCount
= token
>> runShift
;
45 // Copy that many times into dest
47 while (runCount
-- != 0)
49 memcpy(pft
, &token
, tokSize
);