]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/BitField.c
MdePkg: Clean up source files
[mirror_edk2.git] / MdePkg / Library / BaseLib / BitField.c
index eb9e276acc7132ce9043314500b7e132cd0f972f..d2d3150f2a08675387ac195c86c4e0ba4123814a 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Bit field functions of BaseLib.\r
 \r
-  Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -69,13 +69,13 @@ InternalBaseLibBitFieldOrUint (
   )\r
 {\r
   //\r
-  // Higher bits in OrData those are not used must be zero. \r
+  // Higher bits in OrData those are not used must be zero.\r
   //\r
   // EndBit - StartBit + 1 might be 32 while the result right shifting 32 on a 32bit integer is undefined,\r
   // So the logic is updated to right shift (EndBit - StartBit) bits and compare the last bit directly.\r
   //\r
   ASSERT ((OrData >> (EndBit - StartBit)) == ((OrData >> (EndBit - StartBit)) & 1));\r
-  \r
+\r
   //\r
   // ~((UINTN)-2 << EndBit) is a mask in which bit[0] thru bit[EndBit]\r
   // are 1's while bit[EndBit + 1] thru the most significant bit are 0's.\r
@@ -111,7 +111,7 @@ InternalBaseLibBitFieldAndUint (
   )\r
 {\r
   //\r
-  // Higher bits in AndData those are not used must be zero. \r
+  // Higher bits in AndData those are not used must be zero.\r
   //\r
   // EndBit - StartBit + 1 might be 32 while the result right shifting 32 on a 32bit integer is undefined,\r
   // So the logic is updated to right shift (EndBit - StartBit) bits and compare the last bit directly.\r
@@ -275,7 +275,7 @@ BitFieldAnd8 (
   bitwise OR, and returns the result.\r
 \r
   Performs a bitwise AND between the bit field specified by StartBit and EndBit\r
-  in Operand and the value specified by AndData, followed by a bitwise \r
+  in Operand and the value specified by AndData, followed by a bitwise\r
   OR with value specified by OrData. All other bits in Operand are\r
   preserved. The new 8-bit value is returned.\r
 \r
@@ -467,7 +467,7 @@ BitFieldAnd16 (
   bitwise OR, and returns the result.\r
 \r
   Performs a bitwise AND between the bit field specified by StartBit and EndBit\r
-  in Operand and the value specified by AndData, followed by a bitwise \r
+  in Operand and the value specified by AndData, followed by a bitwise\r
   OR with value specified by OrData. All other bits in Operand are\r
   preserved. The new 16-bit value is returned.\r
 \r
@@ -659,7 +659,7 @@ BitFieldAnd32 (
   bitwise OR, and returns the result.\r
 \r
   Performs a bitwise AND between the bit field specified by StartBit and EndBit\r
-  in Operand and the value specified by AndData, followed by a bitwise \r
+  in Operand and the value specified by AndData, followed by a bitwise\r
   OR with value specified by OrData. All other bits in Operand are\r
   preserved. The new 32-bit value is returned.\r
 \r
@@ -809,7 +809,7 @@ BitFieldOr64 (
   ASSERT (EndBit < 64);\r
   ASSERT (StartBit <= EndBit);\r
   //\r
-  // Higher bits in OrData those are not used must be zero. \r
+  // Higher bits in OrData those are not used must be zero.\r
   //\r
   // EndBit - StartBit + 1 might be 64 while the result right shifting 64 on RShiftU64() API is invalid,\r
   // So the logic is updated to right shift (EndBit - StartBit) bits and compare the last bit directly.\r
@@ -857,11 +857,11 @@ BitFieldAnd64 (
 {\r
   UINT64  Value1;\r
   UINT64  Value2;\r
-  \r
+\r
   ASSERT (EndBit < 64);\r
   ASSERT (StartBit <= EndBit);\r
   //\r
-  // Higher bits in AndData those are not used must be zero. \r
+  // Higher bits in AndData those are not used must be zero.\r
   //\r
   // EndBit - StartBit + 1 might be 64 while the right shifting 64 on RShiftU64() API is invalid,\r
   // So the logic is updated to right shift (EndBit - StartBit) bits and compare the last bit directly.\r
@@ -879,7 +879,7 @@ BitFieldAnd64 (
   bitwise OR, and returns the result.\r
 \r
   Performs a bitwise AND between the bit field specified by StartBit and EndBit\r
-  in Operand and the value specified by AndData, followed by a bitwise \r
+  in Operand and the value specified by AndData, followed by a bitwise\r
   OR with value specified by OrData. All other bits in Operand are\r
   preserved. The new 64-bit value is returned.\r
 \r