]> git.proxmox.com Git - mirror_edk2.git/commitdiff
1. fix the wrong description, change "target the buffer" to "the target buffer"
authoreric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 7 Dec 2009 04:48:53 +0000 (04:48 +0000)
committereric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 7 Dec 2009 04:48:53 +0000 (04:48 +0000)
2. fix ICC/GYGGCC build failure on ScanMemN() in X64 arch, it can not reach the last sentence when UINTN is equal to UINT64.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9530 6f19259b-4bc3-4df7-8a09-765794883524

48 files changed:
MdePkg/Library/BaseMemoryLib/MemLibGuid.c
MdePkg/Library/BaseMemoryLib/ScanMem16Wrapper.c
MdePkg/Library/BaseMemoryLib/ScanMem32Wrapper.c
MdePkg/Library/BaseMemoryLib/ScanMem64Wrapper.c
MdePkg/Library/BaseMemoryLib/ScanMem8Wrapper.c
MdePkg/Library/BaseMemoryLib/SetMemWrapper.c
MdePkg/Library/BaseMemoryLibMmx/MemLibGuid.c
MdePkg/Library/BaseMemoryLibMmx/ScanMem16Wrapper.c
MdePkg/Library/BaseMemoryLibMmx/ScanMem32Wrapper.c
MdePkg/Library/BaseMemoryLibMmx/ScanMem64Wrapper.c
MdePkg/Library/BaseMemoryLibMmx/ScanMem8Wrapper.c
MdePkg/Library/BaseMemoryLibMmx/SetMemWrapper.c
MdePkg/Library/BaseMemoryLibOptDxe/MemLibGuid.c
MdePkg/Library/BaseMemoryLibOptDxe/ScanMem16Wrapper.c
MdePkg/Library/BaseMemoryLibOptDxe/ScanMem32Wrapper.c
MdePkg/Library/BaseMemoryLibOptDxe/ScanMem64Wrapper.c
MdePkg/Library/BaseMemoryLibOptDxe/ScanMem8Wrapper.c
MdePkg/Library/BaseMemoryLibOptDxe/SetMemWrapper.c
MdePkg/Library/BaseMemoryLibOptPei/MemLibGuid.c
MdePkg/Library/BaseMemoryLibOptPei/ScanMem16Wrapper.c
MdePkg/Library/BaseMemoryLibOptPei/ScanMem32Wrapper.c
MdePkg/Library/BaseMemoryLibOptPei/ScanMem64Wrapper.c
MdePkg/Library/BaseMemoryLibOptPei/ScanMem8Wrapper.c
MdePkg/Library/BaseMemoryLibOptPei/SetMemWrapper.c
MdePkg/Library/BaseMemoryLibRepStr/MemLibGuid.c
MdePkg/Library/BaseMemoryLibRepStr/ScanMem16Wrapper.c
MdePkg/Library/BaseMemoryLibRepStr/ScanMem32Wrapper.c
MdePkg/Library/BaseMemoryLibRepStr/ScanMem64Wrapper.c
MdePkg/Library/BaseMemoryLibRepStr/ScanMem8Wrapper.c
MdePkg/Library/BaseMemoryLibRepStr/SetMemWrapper.c
MdePkg/Library/BaseMemoryLibSse2/MemLibGuid.c
MdePkg/Library/BaseMemoryLibSse2/ScanMem16Wrapper.c
MdePkg/Library/BaseMemoryLibSse2/ScanMem32Wrapper.c
MdePkg/Library/BaseMemoryLibSse2/ScanMem64Wrapper.c
MdePkg/Library/BaseMemoryLibSse2/ScanMem8Wrapper.c
MdePkg/Library/BaseMemoryLibSse2/SetMemWrapper.c
MdePkg/Library/PeiMemoryLib/MemLibGuid.c
MdePkg/Library/PeiMemoryLib/ScanMem16Wrapper.c
MdePkg/Library/PeiMemoryLib/ScanMem32Wrapper.c
MdePkg/Library/PeiMemoryLib/ScanMem64Wrapper.c
MdePkg/Library/PeiMemoryLib/ScanMem8Wrapper.c
MdePkg/Library/PeiMemoryLib/SetMemWrapper.c
MdePkg/Library/UefiMemoryLib/MemLibGuid.c
MdePkg/Library/UefiMemoryLib/ScanMem16Wrapper.c
MdePkg/Library/UefiMemoryLib/ScanMem32Wrapper.c
MdePkg/Library/UefiMemoryLib/ScanMem64Wrapper.c
MdePkg/Library/UefiMemoryLib/ScanMem8Wrapper.c
MdePkg/Library/UefiMemoryLib/SetMemWrapper.c

index b315ff5322ad1f16f1530c385984eacc277b1723..737341023a0e3fe7b35fe361ba819a0573d7e0c4 100644 (file)
@@ -98,7 +98,7 @@ CompareGuid (
   Scans a target buffer for a GUID, and returns a pointer to the matching GUID\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from\r
+  This function searches the target buffer specified by Buffer and Length from\r
   the lowest address to the highest address at 128-bit increments for the 128-bit\r
   GUID value that matches Guid.  If a match is found, then a pointer to the matching\r
   GUID in the target buffer is returned.  If no match is found, then NULL is returned.\r
index f8b3ab97637579560f4415fc93714fc33f2f3d93..1122fb536e3631f51ba5d8e278036778e65910db 100644 (file)
@@ -29,7 +29,7 @@
   Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for a 16-bit value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
index d31b13f4d460b8c33afac1abd64c2427f77e2313..60d5eff683ade042b5cdd2123b624e355fccf27e 100644 (file)
@@ -28,7 +28,7 @@
   Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for a 32-bit value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
index 6d7acf3f7b77a0f89bdf9c5b50eb6848e79e2ed8..87d1643642b03e8b253f8cfcd9754b1efbdbbffb 100644 (file)
@@ -29,7 +29,7 @@
   Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for a 64-bit value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
index 9efca5e02a40f5621b30ca314d511acd40e20541..ecf1bdd2a75dd26aca772a95d7a6a2887107d696 100644 (file)
@@ -29,7 +29,7 @@
   Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for an 8-bit value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
@@ -65,7 +65,7 @@ ScanMem8 (
   Scans a target buffer for a UINTN sized value, and returns a pointer to the matching \r
   UINTN sized value in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for a UINTN sized value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
@@ -92,7 +92,8 @@ ScanMemN (
 {\r
   if (sizeof (UINTN) == sizeof (UINT64)) {\r
     return ScanMem64 (Buffer, Length, (UINT64)Value);\r
+  } else {\r
+    return ScanMem32 (Buffer, Length, (UINT32)Value);\r
   }\r
-  return ScanMem32 (Buffer, Length, (UINT32)Value);\r
 }\r
 \r
index f60691da406fb2fce8cb3984525821322ae586c6..e728175a5c3d55d25ae10f9b0adcd56ffa9c0be0 100644 (file)
@@ -85,6 +85,7 @@ SetMemN (
 {\r
   if (sizeof (UINTN) == sizeof (UINT64)) {\r
     return SetMem64 (Buffer, Length, (UINT64)Value);\r
+  } else {\r
+    return SetMem32 (Buffer, Length, (UINT32)Value);\r
   }\r
-  return SetMem32 (Buffer, Length, (UINT32)Value);\r
 }\r
index b315ff5322ad1f16f1530c385984eacc277b1723..737341023a0e3fe7b35fe361ba819a0573d7e0c4 100644 (file)
@@ -98,7 +98,7 @@ CompareGuid (
   Scans a target buffer for a GUID, and returns a pointer to the matching GUID\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from\r
+  This function searches the target buffer specified by Buffer and Length from\r
   the lowest address to the highest address at 128-bit increments for the 128-bit\r
   GUID value that matches Guid.  If a match is found, then a pointer to the matching\r
   GUID in the target buffer is returned.  If no match is found, then NULL is returned.\r
index f8b3ab97637579560f4415fc93714fc33f2f3d93..1122fb536e3631f51ba5d8e278036778e65910db 100644 (file)
@@ -29,7 +29,7 @@
   Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for a 16-bit value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
index d31b13f4d460b8c33afac1abd64c2427f77e2313..60d5eff683ade042b5cdd2123b624e355fccf27e 100644 (file)
@@ -28,7 +28,7 @@
   Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for a 32-bit value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
index 6d7acf3f7b77a0f89bdf9c5b50eb6848e79e2ed8..87d1643642b03e8b253f8cfcd9754b1efbdbbffb 100644 (file)
@@ -29,7 +29,7 @@
   Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for a 64-bit value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
index 9efca5e02a40f5621b30ca314d511acd40e20541..ecf1bdd2a75dd26aca772a95d7a6a2887107d696 100644 (file)
@@ -29,7 +29,7 @@
   Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for an 8-bit value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
@@ -65,7 +65,7 @@ ScanMem8 (
   Scans a target buffer for a UINTN sized value, and returns a pointer to the matching \r
   UINTN sized value in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for a UINTN sized value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
@@ -92,7 +92,8 @@ ScanMemN (
 {\r
   if (sizeof (UINTN) == sizeof (UINT64)) {\r
     return ScanMem64 (Buffer, Length, (UINT64)Value);\r
+  } else {\r
+    return ScanMem32 (Buffer, Length, (UINT32)Value);\r
   }\r
-  return ScanMem32 (Buffer, Length, (UINT32)Value);\r
 }\r
 \r
index f60691da406fb2fce8cb3984525821322ae586c6..e728175a5c3d55d25ae10f9b0adcd56ffa9c0be0 100644 (file)
@@ -85,6 +85,7 @@ SetMemN (
 {\r
   if (sizeof (UINTN) == sizeof (UINT64)) {\r
     return SetMem64 (Buffer, Length, (UINT64)Value);\r
+  } else {\r
+    return SetMem32 (Buffer, Length, (UINT32)Value);\r
   }\r
-  return SetMem32 (Buffer, Length, (UINT32)Value);\r
 }\r
index b315ff5322ad1f16f1530c385984eacc277b1723..737341023a0e3fe7b35fe361ba819a0573d7e0c4 100644 (file)
@@ -98,7 +98,7 @@ CompareGuid (
   Scans a target buffer for a GUID, and returns a pointer to the matching GUID\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from\r
+  This function searches the target buffer specified by Buffer and Length from\r
   the lowest address to the highest address at 128-bit increments for the 128-bit\r
   GUID value that matches Guid.  If a match is found, then a pointer to the matching\r
   GUID in the target buffer is returned.  If no match is found, then NULL is returned.\r
index f8b3ab97637579560f4415fc93714fc33f2f3d93..1122fb536e3631f51ba5d8e278036778e65910db 100644 (file)
@@ -29,7 +29,7 @@
   Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for a 16-bit value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
index d31b13f4d460b8c33afac1abd64c2427f77e2313..60d5eff683ade042b5cdd2123b624e355fccf27e 100644 (file)
@@ -28,7 +28,7 @@
   Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for a 32-bit value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
index 6d7acf3f7b77a0f89bdf9c5b50eb6848e79e2ed8..87d1643642b03e8b253f8cfcd9754b1efbdbbffb 100644 (file)
@@ -29,7 +29,7 @@
   Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for a 64-bit value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
index 9efca5e02a40f5621b30ca314d511acd40e20541..ecf1bdd2a75dd26aca772a95d7a6a2887107d696 100644 (file)
@@ -29,7 +29,7 @@
   Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for an 8-bit value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
@@ -65,7 +65,7 @@ ScanMem8 (
   Scans a target buffer for a UINTN sized value, and returns a pointer to the matching \r
   UINTN sized value in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for a UINTN sized value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
@@ -92,7 +92,8 @@ ScanMemN (
 {\r
   if (sizeof (UINTN) == sizeof (UINT64)) {\r
     return ScanMem64 (Buffer, Length, (UINT64)Value);\r
+  } else {\r
+    return ScanMem32 (Buffer, Length, (UINT32)Value);\r
   }\r
-  return ScanMem32 (Buffer, Length, (UINT32)Value);\r
 }\r
 \r
index f60691da406fb2fce8cb3984525821322ae586c6..e728175a5c3d55d25ae10f9b0adcd56ffa9c0be0 100644 (file)
@@ -85,6 +85,7 @@ SetMemN (
 {\r
   if (sizeof (UINTN) == sizeof (UINT64)) {\r
     return SetMem64 (Buffer, Length, (UINT64)Value);\r
+  } else {\r
+    return SetMem32 (Buffer, Length, (UINT32)Value);\r
   }\r
-  return SetMem32 (Buffer, Length, (UINT32)Value);\r
 }\r
index b315ff5322ad1f16f1530c385984eacc277b1723..737341023a0e3fe7b35fe361ba819a0573d7e0c4 100644 (file)
@@ -98,7 +98,7 @@ CompareGuid (
   Scans a target buffer for a GUID, and returns a pointer to the matching GUID\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from\r
+  This function searches the target buffer specified by Buffer and Length from\r
   the lowest address to the highest address at 128-bit increments for the 128-bit\r
   GUID value that matches Guid.  If a match is found, then a pointer to the matching\r
   GUID in the target buffer is returned.  If no match is found, then NULL is returned.\r
index f8b3ab97637579560f4415fc93714fc33f2f3d93..1122fb536e3631f51ba5d8e278036778e65910db 100644 (file)
@@ -29,7 +29,7 @@
   Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for a 16-bit value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
index d31b13f4d460b8c33afac1abd64c2427f77e2313..60d5eff683ade042b5cdd2123b624e355fccf27e 100644 (file)
@@ -28,7 +28,7 @@
   Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for a 32-bit value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
index 6d7acf3f7b77a0f89bdf9c5b50eb6848e79e2ed8..87d1643642b03e8b253f8cfcd9754b1efbdbbffb 100644 (file)
@@ -29,7 +29,7 @@
   Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for a 64-bit value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
index 9efca5e02a40f5621b30ca314d511acd40e20541..ecf1bdd2a75dd26aca772a95d7a6a2887107d696 100644 (file)
@@ -29,7 +29,7 @@
   Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for an 8-bit value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
@@ -65,7 +65,7 @@ ScanMem8 (
   Scans a target buffer for a UINTN sized value, and returns a pointer to the matching \r
   UINTN sized value in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for a UINTN sized value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
@@ -92,7 +92,8 @@ ScanMemN (
 {\r
   if (sizeof (UINTN) == sizeof (UINT64)) {\r
     return ScanMem64 (Buffer, Length, (UINT64)Value);\r
+  } else {\r
+    return ScanMem32 (Buffer, Length, (UINT32)Value);\r
   }\r
-  return ScanMem32 (Buffer, Length, (UINT32)Value);\r
 }\r
 \r
index f60691da406fb2fce8cb3984525821322ae586c6..e728175a5c3d55d25ae10f9b0adcd56ffa9c0be0 100644 (file)
@@ -85,6 +85,7 @@ SetMemN (
 {\r
   if (sizeof (UINTN) == sizeof (UINT64)) {\r
     return SetMem64 (Buffer, Length, (UINT64)Value);\r
+  } else {\r
+    return SetMem32 (Buffer, Length, (UINT32)Value);\r
   }\r
-  return SetMem32 (Buffer, Length, (UINT32)Value);\r
 }\r
index b315ff5322ad1f16f1530c385984eacc277b1723..737341023a0e3fe7b35fe361ba819a0573d7e0c4 100644 (file)
@@ -98,7 +98,7 @@ CompareGuid (
   Scans a target buffer for a GUID, and returns a pointer to the matching GUID\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from\r
+  This function searches the target buffer specified by Buffer and Length from\r
   the lowest address to the highest address at 128-bit increments for the 128-bit\r
   GUID value that matches Guid.  If a match is found, then a pointer to the matching\r
   GUID in the target buffer is returned.  If no match is found, then NULL is returned.\r
index f8b3ab97637579560f4415fc93714fc33f2f3d93..1122fb536e3631f51ba5d8e278036778e65910db 100644 (file)
@@ -29,7 +29,7 @@
   Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for a 16-bit value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
index d31b13f4d460b8c33afac1abd64c2427f77e2313..60d5eff683ade042b5cdd2123b624e355fccf27e 100644 (file)
@@ -28,7 +28,7 @@
   Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for a 32-bit value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
index 6d7acf3f7b77a0f89bdf9c5b50eb6848e79e2ed8..87d1643642b03e8b253f8cfcd9754b1efbdbbffb 100644 (file)
@@ -29,7 +29,7 @@
   Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for a 64-bit value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
index 9efca5e02a40f5621b30ca314d511acd40e20541..ecf1bdd2a75dd26aca772a95d7a6a2887107d696 100644 (file)
@@ -29,7 +29,7 @@
   Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for an 8-bit value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
@@ -65,7 +65,7 @@ ScanMem8 (
   Scans a target buffer for a UINTN sized value, and returns a pointer to the matching \r
   UINTN sized value in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for a UINTN sized value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
@@ -92,7 +92,8 @@ ScanMemN (
 {\r
   if (sizeof (UINTN) == sizeof (UINT64)) {\r
     return ScanMem64 (Buffer, Length, (UINT64)Value);\r
+  } else {\r
+    return ScanMem32 (Buffer, Length, (UINT32)Value);\r
   }\r
-  return ScanMem32 (Buffer, Length, (UINT32)Value);\r
 }\r
 \r
index f60691da406fb2fce8cb3984525821322ae586c6..e728175a5c3d55d25ae10f9b0adcd56ffa9c0be0 100644 (file)
@@ -85,6 +85,7 @@ SetMemN (
 {\r
   if (sizeof (UINTN) == sizeof (UINT64)) {\r
     return SetMem64 (Buffer, Length, (UINT64)Value);\r
+  } else {\r
+    return SetMem32 (Buffer, Length, (UINT32)Value);\r
   }\r
-  return SetMem32 (Buffer, Length, (UINT32)Value);\r
 }\r
index b315ff5322ad1f16f1530c385984eacc277b1723..737341023a0e3fe7b35fe361ba819a0573d7e0c4 100644 (file)
@@ -98,7 +98,7 @@ CompareGuid (
   Scans a target buffer for a GUID, and returns a pointer to the matching GUID\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from\r
+  This function searches the target buffer specified by Buffer and Length from\r
   the lowest address to the highest address at 128-bit increments for the 128-bit\r
   GUID value that matches Guid.  If a match is found, then a pointer to the matching\r
   GUID in the target buffer is returned.  If no match is found, then NULL is returned.\r
index f8b3ab97637579560f4415fc93714fc33f2f3d93..1122fb536e3631f51ba5d8e278036778e65910db 100644 (file)
@@ -29,7 +29,7 @@
   Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for a 16-bit value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
index d31b13f4d460b8c33afac1abd64c2427f77e2313..60d5eff683ade042b5cdd2123b624e355fccf27e 100644 (file)
@@ -28,7 +28,7 @@
   Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for a 32-bit value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
index 6d7acf3f7b77a0f89bdf9c5b50eb6848e79e2ed8..87d1643642b03e8b253f8cfcd9754b1efbdbbffb 100644 (file)
@@ -29,7 +29,7 @@
   Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for a 64-bit value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
index 9efca5e02a40f5621b30ca314d511acd40e20541..ecf1bdd2a75dd26aca772a95d7a6a2887107d696 100644 (file)
@@ -29,7 +29,7 @@
   Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for an 8-bit value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
@@ -65,7 +65,7 @@ ScanMem8 (
   Scans a target buffer for a UINTN sized value, and returns a pointer to the matching \r
   UINTN sized value in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for a UINTN sized value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
@@ -92,7 +92,8 @@ ScanMemN (
 {\r
   if (sizeof (UINTN) == sizeof (UINT64)) {\r
     return ScanMem64 (Buffer, Length, (UINT64)Value);\r
+  } else {\r
+    return ScanMem32 (Buffer, Length, (UINT32)Value);\r
   }\r
-  return ScanMem32 (Buffer, Length, (UINT32)Value);\r
 }\r
 \r
index f60691da406fb2fce8cb3984525821322ae586c6..e728175a5c3d55d25ae10f9b0adcd56ffa9c0be0 100644 (file)
@@ -85,6 +85,7 @@ SetMemN (
 {\r
   if (sizeof (UINTN) == sizeof (UINT64)) {\r
     return SetMem64 (Buffer, Length, (UINT64)Value);\r
+  } else {\r
+    return SetMem32 (Buffer, Length, (UINT32)Value);\r
   }\r
-  return SetMem32 (Buffer, Length, (UINT32)Value);\r
 }\r
index b315ff5322ad1f16f1530c385984eacc277b1723..737341023a0e3fe7b35fe361ba819a0573d7e0c4 100644 (file)
@@ -98,7 +98,7 @@ CompareGuid (
   Scans a target buffer for a GUID, and returns a pointer to the matching GUID\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from\r
+  This function searches the target buffer specified by Buffer and Length from\r
   the lowest address to the highest address at 128-bit increments for the 128-bit\r
   GUID value that matches Guid.  If a match is found, then a pointer to the matching\r
   GUID in the target buffer is returned.  If no match is found, then NULL is returned.\r
index f8b3ab97637579560f4415fc93714fc33f2f3d93..1122fb536e3631f51ba5d8e278036778e65910db 100644 (file)
@@ -29,7 +29,7 @@
   Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for a 16-bit value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
index d31b13f4d460b8c33afac1abd64c2427f77e2313..60d5eff683ade042b5cdd2123b624e355fccf27e 100644 (file)
@@ -28,7 +28,7 @@
   Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for a 32-bit value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
index 6d7acf3f7b77a0f89bdf9c5b50eb6848e79e2ed8..87d1643642b03e8b253f8cfcd9754b1efbdbbffb 100644 (file)
@@ -29,7 +29,7 @@
   Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for a 64-bit value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
index 9efca5e02a40f5621b30ca314d511acd40e20541..ecf1bdd2a75dd26aca772a95d7a6a2887107d696 100644 (file)
@@ -29,7 +29,7 @@
   Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for an 8-bit value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
@@ -65,7 +65,7 @@ ScanMem8 (
   Scans a target buffer for a UINTN sized value, and returns a pointer to the matching \r
   UINTN sized value in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for a UINTN sized value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
@@ -92,7 +92,8 @@ ScanMemN (
 {\r
   if (sizeof (UINTN) == sizeof (UINT64)) {\r
     return ScanMem64 (Buffer, Length, (UINT64)Value);\r
+  } else {\r
+    return ScanMem32 (Buffer, Length, (UINT32)Value);\r
   }\r
-  return ScanMem32 (Buffer, Length, (UINT32)Value);\r
 }\r
 \r
index f60691da406fb2fce8cb3984525821322ae586c6..e728175a5c3d55d25ae10f9b0adcd56ffa9c0be0 100644 (file)
@@ -85,6 +85,7 @@ SetMemN (
 {\r
   if (sizeof (UINTN) == sizeof (UINT64)) {\r
     return SetMem64 (Buffer, Length, (UINT64)Value);\r
+  } else {\r
+    return SetMem32 (Buffer, Length, (UINT32)Value);\r
   }\r
-  return SetMem32 (Buffer, Length, (UINT32)Value);\r
 }\r
index b315ff5322ad1f16f1530c385984eacc277b1723..737341023a0e3fe7b35fe361ba819a0573d7e0c4 100644 (file)
@@ -98,7 +98,7 @@ CompareGuid (
   Scans a target buffer for a GUID, and returns a pointer to the matching GUID\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from\r
+  This function searches the target buffer specified by Buffer and Length from\r
   the lowest address to the highest address at 128-bit increments for the 128-bit\r
   GUID value that matches Guid.  If a match is found, then a pointer to the matching\r
   GUID in the target buffer is returned.  If no match is found, then NULL is returned.\r
index f8b3ab97637579560f4415fc93714fc33f2f3d93..1122fb536e3631f51ba5d8e278036778e65910db 100644 (file)
@@ -29,7 +29,7 @@
   Scans a target buffer for a 16-bit value, and returns a pointer to the matching 16-bit value\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for a 16-bit value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
index d31b13f4d460b8c33afac1abd64c2427f77e2313..60d5eff683ade042b5cdd2123b624e355fccf27e 100644 (file)
@@ -28,7 +28,7 @@
   Scans a target buffer for a 32-bit value, and returns a pointer to the matching 32-bit value\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for a 32-bit value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
index 6d7acf3f7b77a0f89bdf9c5b50eb6848e79e2ed8..87d1643642b03e8b253f8cfcd9754b1efbdbbffb 100644 (file)
@@ -29,7 +29,7 @@
   Scans a target buffer for a 64-bit value, and returns a pointer to the matching 64-bit value\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for a 64-bit value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
index 9efca5e02a40f5621b30ca314d511acd40e20541..ecf1bdd2a75dd26aca772a95d7a6a2887107d696 100644 (file)
@@ -29,7 +29,7 @@
   Scans a target buffer for an 8-bit value, and returns a pointer to the matching 8-bit value\r
   in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for an 8-bit value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
@@ -65,7 +65,7 @@ ScanMem8 (
   Scans a target buffer for a UINTN sized value, and returns a pointer to the matching \r
   UINTN sized value in the target buffer.\r
 \r
-  This function searches target the buffer specified by Buffer and Length from the lowest\r
+  This function searches the target buffer specified by Buffer and Length from the lowest\r
   address to the highest address for a UINTN sized value that matches Value.  If a match is found,\r
   then a pointer to the matching byte in the target buffer is returned.  If no match is found,\r
   then NULL is returned.  If Length is 0, then NULL is returned.\r
@@ -92,7 +92,8 @@ ScanMemN (
 {\r
   if (sizeof (UINTN) == sizeof (UINT64)) {\r
     return ScanMem64 (Buffer, Length, (UINT64)Value);\r
+  } else {\r
+    return ScanMem32 (Buffer, Length, (UINT32)Value);\r
   }\r
-  return ScanMem32 (Buffer, Length, (UINT32)Value);\r
 }\r
 \r
index f60691da406fb2fce8cb3984525821322ae586c6..e728175a5c3d55d25ae10f9b0adcd56ffa9c0be0 100644 (file)
@@ -85,6 +85,7 @@ SetMemN (
 {\r
   if (sizeof (UINTN) == sizeof (UINT64)) {\r
     return SetMem64 (Buffer, Length, (UINT64)Value);\r
+  } else {\r
+    return SetMem32 (Buffer, Length, (UINT32)Value);\r
   }\r
-  return SetMem32 (Buffer, Length, (UINT32)Value);\r
 }\r