]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Library/BaseMemoryLib.h
MdePkg: Clean up source files
[mirror_edk2.git] / MdePkg / Include / Library / BaseMemoryLib.h
index 0e565c15427ada29f788cb8c88b3826e55a98783..f865e8a59a48278cb3943b97b305ece13b6207ce 100644 (file)
@@ -1,13 +1,13 @@
 /** @file\r
   Provides copy memory, fill memory, zero memory, and GUID functions.\r
-   \r
-  The Base Memory Library provides optimized implementations for common memory-based operations. \r
-  These functions should be used in place of coding your own loops to do equivalent common functions. \r
-  This allows optimized library implementations to help increase performance. \r
-\r
-Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials are licensed and made available under \r
-the terms and conditions of the BSD License that accompanies this distribution.  \r
+\r
+  The Base Memory Library provides optimized implementations for common memory-based operations.\r
+  These functions should be used in place of coding your own loops to do equivalent common functions.\r
+  This allows optimized library implementations to help increase performance.\r
+\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under\r
+the terms and conditions of the BSD License that accompanies this distribution.\r
 The full text of the license may be found at\r
 http://opensource.org/licenses/bsd-license.php.\r
 \r
@@ -25,7 +25,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   This function copies Length bytes from SourceBuffer to DestinationBuffer, and returns\r
   DestinationBuffer.  The implementation must be reentrant, and it must handle the case\r
   where SourceBuffer overlaps DestinationBuffer.\r
-  \r
+\r
   If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT().\r
   If Length is greater than (MAX_ADDRESS - SourceBuffer + 1), then ASSERT().\r
 \r
@@ -48,7 +48,7 @@ CopyMem (
   Fills a target buffer with a byte value, and returns the target buffer.\r
 \r
   This function fills Length bytes of Buffer with Value, and returns Buffer.\r
-  \r
+\r
   If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
 \r
   @param  Buffer    The memory to set.\r
@@ -178,7 +178,7 @@ SetMemN (
   Fills a target buffer with zeros, and returns the target buffer.\r
 \r
   This function fills Length bytes of Buffer with zeros, and returns Buffer.\r
-  \r
+\r
   If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
 \r
@@ -202,7 +202,7 @@ ZeroMem (
   If all Length bytes of the two buffers are identical, then 0 is returned.  Otherwise, the\r
   value returned is the first mismatched byte in SourceBuffer subtracted from the first\r
   mismatched byte in DestinationBuffer.\r
-  \r
+\r
   If Length > 0 and DestinationBuffer is NULL, then ASSERT().\r
   If Length > 0 and SourceBuffer is NULL, then ASSERT().\r
   If Length is greater than (MAX_ADDRESS - DestinationBuffer + 1), then ASSERT().\r
@@ -215,7 +215,7 @@ ZeroMem (
   @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
 **/\r
 INTN\r
 EFIAPI\r
@@ -233,7 +233,7 @@ CompareMem (
   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
-  \r
+\r
   If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT().\r
 \r
@@ -260,7 +260,7 @@ ScanMem8 (
   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
-  \r
+\r
   If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Buffer is not aligned on a 16-bit boundary, then ASSERT().\r
   If Length is not aligned on a 16-bit boundary, then ASSERT().\r
@@ -289,7 +289,7 @@ ScanMem16 (
   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
-  \r
+\r
   If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Buffer is not aligned on a 32-bit boundary, then ASSERT().\r
   If Length is not aligned on a 32-bit boundary, then ASSERT().\r
@@ -318,7 +318,7 @@ ScanMem32 (
   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
-  \r
+\r
   If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Buffer is not aligned on a 64-bit boundary, then ASSERT().\r
   If Length is not aligned on a 64-bit boundary, then ASSERT().\r
@@ -340,14 +340,14 @@ ScanMem64 (
   );\r
 \r
 /**\r
-  Scans a target buffer for a UINTN sized value, and returns a pointer to the matching \r
+  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
   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
-  \r
+\r
   If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Buffer is not aligned on a UINTN boundary, then ASSERT().\r
   If Length is not aligned on a UINTN boundary, then ASSERT().\r
@@ -367,13 +367,13 @@ ScanMemN (
   IN UINTN       Length,\r
   IN UINTN       Value\r
   );\r
-  \r
+\r
 /**\r
   Copies a source GUID to a destination GUID.\r
 \r
   This function copies the contents of the 128-bit GUID specified by SourceGuid to\r
   DestinationGuid, and returns DestinationGuid.\r
-  \r
+\r
   If DestinationGuid is NULL, then ASSERT().\r
   If SourceGuid is NULL, then ASSERT().\r
 \r
@@ -395,7 +395,7 @@ CopyGuid (
 \r
   This function compares Guid1 to Guid2.  If the GUIDs are identical then TRUE is returned.\r
   If there are any bit differences in the two GUIDs, then FALSE is returned.\r
-  \r
+\r
   If Guid1 is NULL, then ASSERT().\r
   If Guid2 is NULL, then ASSERT().\r
 \r
@@ -422,7 +422,7 @@ CompareGuid (
   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
   If Length is 0, then NULL is returned.\r
-  \r
+\r
   If Length > 0 and Buffer is NULL, then ASSERT().\r
   If Buffer is not aligned on a 32-bit boundary, then ASSERT().\r
   If Length is not aligned on a 128-bit boundary, then ASSERT().\r