]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseMemoryLib/MemLibGeneric.c
Update copyright for files modified in this year
[mirror_edk2.git] / MdePkg / Library / BaseMemoryLib / MemLibGeneric.c
index 53c4e4416b7ad289c6c71d8a02f144f81093792c..84ca4d9a8b512f3261dd4686288f211faa4c5e27 100644 (file)
@@ -1,7 +1,12 @@
 /** @file\r
   Architecture Independent Base Memory Library Implementation.\r
 \r
-  Copyright (c) 2006, Intel Corporation<BR>\r
+  The following BaseMemoryLib instances contain the same copy of this file:\r
+    BaseMemoryLib\r
+    PeiMemoryLib\r
+    DxeMemoryLib\r
+\r
+  Copyright (c) 2006 - 2008, Intel Corporation<BR>\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
   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-  Module Name:  MemLibGeneric.c\r
+**/\r
 \r
-  The following BaseMemoryLib instances share the same version of this file:\r
 \r
-    BaseMemoryLib\r
-    PeiMemoryLib\r
-    UefiMemoryLib\r
 \r
-**/\r
 \r
 #include "MemLibInternals.h"\r
 \r
@@ -98,7 +98,7 @@ InternalMemSetMem64 (
   Set Buffer to 0 for Size bytes.\r
 \r
   @param  Buffer Memory to set.\r
-  @param  Size Number of bytes to set\r
+  @param  Length Number of bytes to set\r
 \r
   @return Buffer\r
 \r
@@ -121,7 +121,9 @@ InternalMemZeroMem (
   @param  Length            Length of DestinationBuffer and SourceBuffer memory\r
                             regions to compare. Must be non-zero.\r
 \r
-  @retval 0     if MemOne == MemTwo\r
+  @return 0                 All Length bytes of the two buffers are identical.\r
+  @retval Non-zero          The first mismatched byte in SourceBuffer subtracted from the first\r
+                            mismatched byte in DestinationBuffer.\r
 \r
 **/\r
 INTN\r
@@ -161,7 +163,6 @@ InternalMemScanMem8 (
 {\r
   CONST UINT8                       *Pointer;\r
 \r
-  ASSERT (Length > 0);\r
   Pointer = (CONST UINT8*)Buffer;\r
   do {\r
     if (*(Pointer++) == Value) {\r
@@ -192,7 +193,6 @@ InternalMemScanMem16 (
 {\r
   CONST UINT16                      *Pointer;\r
 \r
-  ASSERT (Length > 0);\r
   Pointer = (CONST UINT16*)Buffer;\r
   do {\r
     if (*(Pointer++) == Value) {\r
@@ -223,7 +223,6 @@ InternalMemScanMem32 (
 {\r
   CONST UINT32                      *Pointer;\r
 \r
-  ASSERT (Length > 0);\r
   Pointer = (CONST UINT32*)Buffer;\r
   do {\r
     if (*(Pointer++) == Value) {\r
@@ -254,7 +253,6 @@ InternalMemScanMem64 (
 {\r
   CONST UINT64                      *Pointer;\r
 \r
-  ASSERT (Length > 0);\r
   Pointer = (CONST UINT64*)Buffer;\r
   do {\r
     if (*(Pointer++) == Value) {\r