]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Address an ARM compatibility issue by converting loops that were being optimized...
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 18 Aug 2009 21:00:48 +0000 (21:00 +0000)
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 18 Aug 2009 21:00:48 +0000 (21:00 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9110 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.c

index e3c5d0c45e2ea6543e009e47d3db0963c26c0975..80baee0923bd07420af481114085e1fba4d07543 100644 (file)
@@ -1,7 +1,8 @@
 /** @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
@@ -337,9 +338,7 @@ ReadPTLen (
     //\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
@@ -418,10 +417,7 @@ ReadCLen (
     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);
 \r
     return ;\r
   }\r