diff options
author | mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-08-18 21:00:48 +0000 |
---|---|---|
committer | mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-08-18 21:00:48 +0000 |
commit | 6f0dc9aeffe9d512b00d7128b9a7985dbd3b7576 (patch) | |
tree | 2995062347ea0fd51f6be5e7f4459a6f6a9ceea7 | |
parent | b5a6c9d9e0d288b0eb4438e4558f8e1d4f2731a7 (diff) | |
download | edk2-6f0dc9aeffe9d512b00d7128b9a7985dbd3b7576.zip edk2-6f0dc9aeffe9d512b00d7128b9a7985dbd3b7576.tar.gz edk2-6f0dc9aeffe9d512b00d7128b9a7985dbd3b7576.tar.bz2 |
Address an ARM compatibility issue by converting loops that were being optimized away into SetMem() calls.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9110 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.c b/MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.c index e3c5d0c..80baee0 100644 --- a/MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.c +++ b/MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.c @@ -1,7 +1,8 @@ /** @file
UEFI Decompress Library implementation refer to UEFI specification.
- Copyright (c) 2006 - 2008, Intel Corporation
+ Copyright (c) 2006 - 2008, Intel Corporation<BR>
+ Portions Copyright (c) 2008-2009 Apple Inc.<BR> All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -337,9 +338,7 @@ ReadPTLen ( //
CharC = (UINT16) GetBits (Sd, nbit);
- for (Index = 0; Index < 256; Index++) {
- Sd->mPTTable[Index] = CharC;
- }
+ SetMem16 (&Sd->mPTTable[0] , sizeof (Sd->mPTTable), CharC); SetMem (Sd->mPTLen, nn, 0);
@@ -418,10 +417,7 @@ ReadCLen ( CharC = (UINT16) GetBits (Sd, CBIT);
SetMem (Sd->mCLen, NC, 0);
-
- for (Index = 0; Index < 4096; Index++) {
- Sd->mCTable[Index] = CharC;
- }
+ SetMem16 (&Sd->mCTable[0], sizeof (Sd->mCTable), CharC); return ;
}
|