git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10472
6f19259b-4bc3-4df7-8a09-
765794883524
/** @file\r
UEFI Decompress Library implementation refer to UEFI specification.\r
\r
/** @file\r
UEFI Decompress Library implementation refer to UEFI specification.\r
\r
- Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
\r
Creates Huffman Code mapping table for Extra Set, Char&Len Set\r
and Position Set according to code length array.\r
\r
Creates Huffman Code mapping table for Extra Set, Char&Len Set\r
and Position Set according to code length array.\r
+ If TableBits > 16, then ASSERT ().\r
\r
@param Sd The global scratch data\r
@param NumOfChar Number of symbols in the symbol set\r
\r
@param Sd The global scratch data\r
@param NumOfChar Number of symbols in the symbol set\r
UINT16 WordOfStart;\r
UINT16 WordOfCount;\r
\r
UINT16 WordOfStart;\r
UINT16 WordOfCount;\r
\r
+ //\r
+ // The maximum mapping table width supported by this internal\r
+ // working function is 16.\r
+ //\r
+ ASSERT (TableBits <= 16);\r
\r
for (Index = 0; Index <= 16; Index++) {\r
Count[Index] = 0;\r
\r
for (Index = 0; Index <= 16; Index++) {\r
Count[Index] = 0;\r
/** @file\r
Internal data structure defintions for Base UEFI Decompress Libary.\r
\r
/** @file\r
Internal data structure defintions for Base UEFI Decompress Libary.\r
\r
- Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
Creates Huffman Code mapping table for Extra Set, Char&Len Set\r
and Position Set according to code length array.\r
\r
Creates Huffman Code mapping table for Extra Set, Char&Len Set\r
and Position Set according to code length array.\r
+ If TableBits > 16, then ASSERT ().\r
\r
@param Sd The global scratch data\r
@param NumOfChar Number of symbols in the symbol set\r
\r
@param Sd The global scratch data\r
@param NumOfChar Number of symbols in the symbol set\r