git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9110
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\r
+ Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+ Portions Copyright (c) 2008-2009 Apple Inc.<BR>
All rights reserved. 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
All rights reserved. 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
CharC = (UINT16) GetBits (Sd, nbit);\r
\r
//\r
CharC = (UINT16) GetBits (Sd, nbit);\r
\r
- for (Index = 0; Index < 256; Index++) {\r
- Sd->mPTTable[Index] = CharC;\r
- }\r
+ SetMem16 (&Sd->mPTTable[0] , sizeof (Sd->mPTTable), CharC);
\r
SetMem (Sd->mPTLen, nn, 0);\r
\r
\r
SetMem (Sd->mPTLen, nn, 0);\r
\r
CharC = (UINT16) GetBits (Sd, CBIT);\r
\r
SetMem (Sd->mCLen, NC, 0);\r
CharC = (UINT16) GetBits (Sd, CBIT);\r
\r
SetMem (Sd->mCLen, NC, 0);\r
-\r
- for (Index = 0; Index < 4096; Index++) {\r
- Sd->mCTable[Index] = CharC;\r
- }\r
+ SetMem16 (&Sd->mCTable[0], sizeof (Sd->mCTable), CharC);