]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/Math64.c
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Library / BaseLib / Math64.c
index 154b97ae79f2d205a7762b4eaf31148e21d2d311..5756d0fe9263ab861362b4a59636b6be16436cd4 100644 (file)
@@ -25,8 +25,8 @@
 UINT64\r
 EFIAPI\r
 InternalMathLShiftU64 (\r
-  IN      UINT64                    Operand,\r
-  IN      UINTN                     Count\r
+  IN      UINT64  Operand,\r
+  IN      UINTN   Count\r
   )\r
 {\r
   return Operand << Count;\r
@@ -48,8 +48,8 @@ InternalMathLShiftU64 (
 UINT64\r
 EFIAPI\r
 InternalMathRShiftU64 (\r
-  IN      UINT64                    Operand,\r
-  IN      UINTN                     Count\r
+  IN      UINT64  Operand,\r
+  IN      UINTN   Count\r
   )\r
 {\r
   return Operand >> Count;\r
@@ -71,8 +71,8 @@ InternalMathRShiftU64 (
 UINT64\r
 EFIAPI\r
 InternalMathARShiftU64 (\r
-  IN      UINT64                    Operand,\r
-  IN      UINTN                     Count\r
+  IN      UINT64  Operand,\r
+  IN      UINTN   Count\r
   )\r
 {\r
   INTN  TestValue;\r
@@ -95,7 +95,6 @@ InternalMathARShiftU64 (
          ((INTN)Operand < 0 ? ~((UINTN)-1 >> Count) : 0);\r
 }\r
 \r
-\r
 /**\r
   Rotates a 64-bit integer left between 0 and 63 bits, filling\r
   the low bits with the high bits that were rotated.\r
@@ -113,8 +112,8 @@ InternalMathARShiftU64 (
 UINT64\r
 EFIAPI\r
 InternalMathLRotU64 (\r
-  IN      UINT64                    Operand,\r
-  IN      UINTN                     Count\r
+  IN      UINT64  Operand,\r
+  IN      UINTN   Count\r
   )\r
 {\r
   return (Operand << Count) | (Operand >> (64 - Count));\r
@@ -137,8 +136,8 @@ InternalMathLRotU64 (
 UINT64\r
 EFIAPI\r
 InternalMathRRotU64 (\r
-  IN      UINT64                    Operand,\r
-  IN      UINTN                     Count\r
+  IN      UINT64  Operand,\r
+  IN      UINTN   Count\r
   )\r
 {\r
   return (Operand >> Count) | (Operand << (64 - Count));\r
@@ -159,14 +158,14 @@ InternalMathRRotU64 (
 UINT64\r
 EFIAPI\r
 InternalMathSwapBytes64 (\r
-  IN      UINT64                    Operand\r
+  IN      UINT64  Operand\r
   )\r
 {\r
   UINT64  LowerBytes;\r
   UINT64  HigherBytes;\r
 \r
-  LowerBytes  = (UINT64) SwapBytes32 ((UINT32) Operand);\r
-  HigherBytes = (UINT64) SwapBytes32 ((UINT32) (Operand >> 32));\r
+  LowerBytes  = (UINT64)SwapBytes32 ((UINT32)Operand);\r
+  HigherBytes = (UINT64)SwapBytes32 ((UINT32)(Operand >> 32));\r
 \r
   return (LowerBytes << 32 | HigherBytes);\r
 }\r
@@ -188,14 +187,13 @@ InternalMathSwapBytes64 (
 UINT64\r
 EFIAPI\r
 InternalMathMultU64x32 (\r
-  IN      UINT64                    Multiplicand,\r
-  IN      UINT32                    Multiplier\r
+  IN      UINT64  Multiplicand,\r
+  IN      UINT32  Multiplier\r
   )\r
 {\r
   return Multiplicand * Multiplier;\r
 }\r
 \r
-\r
 /**\r
   Multiplies a 64-bit unsigned integer by a 64-bit unsigned integer\r
   and generates a 64-bit unsigned result.\r
@@ -213,8 +211,8 @@ InternalMathMultU64x32 (
 UINT64\r
 EFIAPI\r
 InternalMathMultU64x64 (\r
-  IN      UINT64                    Multiplicand,\r
-  IN      UINT64                    Multiplier\r
+  IN      UINT64  Multiplicand,\r
+  IN      UINT64  Multiplier\r
   )\r
 {\r
   return Multiplicand * Multiplier;\r
@@ -237,8 +235,8 @@ InternalMathMultU64x64 (
 UINT64\r
 EFIAPI\r
 InternalMathDivU64x32 (\r
-  IN      UINT64                    Dividend,\r
-  IN      UINT32                    Divisor\r
+  IN      UINT64  Dividend,\r
+  IN      UINT32  Divisor\r
   )\r
 {\r
   return Dividend / Divisor;\r
@@ -261,8 +259,8 @@ InternalMathDivU64x32 (
 UINT32\r
 EFIAPI\r
 InternalMathModU64x32 (\r
-  IN      UINT64                    Dividend,\r
-  IN      UINT32                    Divisor\r
+  IN      UINT64  Dividend,\r
+  IN      UINT32  Divisor\r
   )\r
 {\r
   return (UINT32)(Dividend % Divisor);\r
@@ -288,14 +286,15 @@ InternalMathModU64x32 (
 UINT64\r
 EFIAPI\r
 InternalMathDivRemU64x32 (\r
-  IN      UINT64                    Dividend,\r
-  IN      UINT32                    Divisor,\r
-  OUT     UINT32                    *Remainder OPTIONAL\r
+  IN      UINT64  Dividend,\r
+  IN      UINT32  Divisor,\r
+  OUT     UINT32  *Remainder OPTIONAL\r
   )\r
 {\r
   if (Remainder != NULL) {\r
     *Remainder = (UINT32)(Dividend % Divisor);\r
   }\r
+\r
   return Dividend / Divisor;\r
 }\r
 \r
@@ -319,14 +318,15 @@ InternalMathDivRemU64x32 (
 UINT64\r
 EFIAPI\r
 InternalMathDivRemU64x64 (\r
-  IN      UINT64                    Dividend,\r
-  IN      UINT64                    Divisor,\r
-  OUT     UINT64                    *Remainder OPTIONAL\r
+  IN      UINT64  Dividend,\r
+  IN      UINT64  Divisor,\r
+  OUT     UINT64  *Remainder OPTIONAL\r
   )\r
 {\r
   if (Remainder != NULL) {\r
     *Remainder = Dividend % Divisor;\r
   }\r
+\r
   return Dividend / Divisor;\r
 }\r
 \r
@@ -350,13 +350,14 @@ InternalMathDivRemU64x64 (
 INT64\r
 EFIAPI\r
 InternalMathDivRemS64x64 (\r
-  IN      INT64                     Dividend,\r
-  IN      INT64                     Divisor,\r
-  OUT     INT64                     *Remainder  OPTIONAL\r
+  IN      INT64  Dividend,\r
+  IN      INT64  Divisor,\r
+  OUT     INT64  *Remainder  OPTIONAL\r
   )\r
 {\r
   if (Remainder != NULL) {\r
     *Remainder = Dividend % Divisor;\r
   }\r
+\r
   return Dividend / Divisor;\r
 }\r