]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/X64/GccInline.c
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Library / BaseLib / X64 / GccInline.c
index 40a208f1985f4d46b9d62b2afb7bccd2da194b29..c21eb0622eb7f0e4a3d3c0fb0ca6ba8ae500182c 100644 (file)
@@ -7,12 +7,8 @@
 \r
 **/\r
 \r
-\r
 #include "BaseLibInternals.h"\r
 \r
-\r
-\r
-\r
 /**\r
   Used to serialize load and store operations.\r
 \r
@@ -32,7 +28,6 @@ MemoryFence (
   __asm__ __volatile__ ("":::"memory");\r
 }\r
 \r
-\r
 /**\r
   Requests CPU to pause for a short period of time.\r
 \r
@@ -49,7 +44,6 @@ CpuPause (
   __asm__ __volatile__ ("pause");\r
 }\r
 \r
-\r
 /**\r
   Generates a breakpoint on the CPU.\r
 \r
@@ -66,7 +60,6 @@ CpuBreakpoint (
   __asm__ __volatile__ ("int $3");\r
 }\r
 \r
-\r
 /**\r
   Reads the current value of the EFLAGS register.\r
 \r
@@ -83,13 +76,13 @@ AsmReadEflags (
   VOID\r
   )\r
 {\r
-  UINTN Eflags;\r
+  UINTN  Eflags;\r
 \r
   __asm__ __volatile__ (\r
     "pushfq         \n\t"\r
     "pop     %0         "\r
     : "=r" (Eflags)       // %0\r
-    );\r
+  );\r
 \r
   return Eflags;\r
 }\r
@@ -107,17 +100,16 @@ AsmReadEflags (
 VOID\r
 EFIAPI\r
 InternalX86FxSave (\r
-  OUT     IA32_FX_BUFFER            *Buffer\r
+  OUT     IA32_FX_BUFFER  *Buffer\r
   )\r
 {\r
   __asm__ __volatile__ (\r
     "fxsave %0"\r
     :\r
     : "m" (*Buffer)  // %0\r
-    );\r
+  );\r
 }\r
 \r
-\r
 /**\r
   Restores the current floating point/SSE/SSE2 context from a buffer.\r
 \r
@@ -131,17 +123,16 @@ InternalX86FxSave (
 VOID\r
 EFIAPI\r
 InternalX86FxRestore (\r
-  IN      CONST IA32_FX_BUFFER      *Buffer\r
+  IN      CONST IA32_FX_BUFFER  *Buffer\r
   )\r
 {\r
   __asm__ __volatile__ (\r
     "fxrstor %0"\r
     :\r
     : "m" (*Buffer)  // %0\r
-    );\r
+  );\r
 }\r
 \r
-\r
 /**\r
   Reads the current value of 64-bit MMX Register #0 (MM0).\r
 \r
@@ -162,12 +153,11 @@ AsmReadMm0 (
   __asm__ __volatile__ (\r
     "movd   %%mm0,  %0    \n\t"\r
     : "=r"  (Data)       // %0\r
-    );\r
+  );\r
 \r
   return Data;\r
 }\r
 \r
-\r
 /**\r
   Reads the current value of 64-bit MMX Register #1 (MM1).\r
 \r
@@ -188,12 +178,11 @@ AsmReadMm1 (
   __asm__ __volatile__ (\r
     "movd   %%mm1,  %0    \n\t"\r
     : "=r"  (Data)       // %0\r
-    );\r
+  );\r
 \r
   return Data;\r
 }\r
 \r
-\r
 /**\r
   Reads the current value of 64-bit MMX Register #2 (MM2).\r
 \r
@@ -214,12 +203,11 @@ AsmReadMm2 (
   __asm__ __volatile__ (\r
     "movd  %%mm2,  %0    \n\t"\r
     : "=r"  (Data)       // %0\r
-    );\r
+  );\r
 \r
   return Data;\r
 }\r
 \r
-\r
 /**\r
   Reads the current value of 64-bit MMX Register #3 (MM3).\r
 \r
@@ -240,12 +228,11 @@ AsmReadMm3 (
   __asm__ __volatile__ (\r
     "movd  %%mm3,  %0    \n\t"\r
     : "=r"  (Data)       // %0\r
-    );\r
+  );\r
 \r
   return Data;\r
 }\r
 \r
-\r
 /**\r
   Reads the current value of 64-bit MMX Register #4 (MM4).\r
 \r
@@ -266,12 +253,11 @@ AsmReadMm4 (
   __asm__ __volatile__ (\r
     "movd  %%mm4,  %0    \n\t"\r
     : "=r"  (Data)       // %0\r
-    );\r
+  );\r
 \r
   return Data;\r
 }\r
 \r
-\r
 /**\r
   Reads the current value of 64-bit MMX Register #5 (MM5).\r
 \r
@@ -292,12 +278,11 @@ AsmReadMm5 (
   __asm__ __volatile__ (\r
     "movd  %%mm5,  %0    \n\t"\r
     : "=r"  (Data)       // %0\r
-    );\r
+  );\r
 \r
   return Data;\r
 }\r
 \r
-\r
 /**\r
   Reads the current value of 64-bit MMX Register #6 (MM6).\r
 \r
@@ -318,12 +303,11 @@ AsmReadMm6 (
   __asm__ __volatile__ (\r
     "movd  %%mm6,  %0    \n\t"\r
     : "=r"  (Data)       // %0\r
-    );\r
+  );\r
 \r
   return Data;\r
 }\r
 \r
-\r
 /**\r
   Reads the current value of 64-bit MMX Register #7 (MM7).\r
 \r
@@ -344,12 +328,11 @@ AsmReadMm7 (
   __asm__ __volatile__ (\r
     "movd  %%mm7,  %0    \n\t"\r
     : "=r"  (Data)       // %0\r
-    );\r
+  );\r
 \r
   return Data;\r
 }\r
 \r
-\r
 /**\r
   Writes the current value of 64-bit MMX Register #0 (MM0).\r
 \r
@@ -362,17 +345,16 @@ AsmReadMm7 (
 VOID\r
 EFIAPI\r
 AsmWriteMm0 (\r
-  IN      UINT64                    Value\r
+  IN      UINT64  Value\r
   )\r
 {\r
   __asm__ __volatile__ (\r
     "movd  %0, %%mm0"  // %0\r
     :\r
     : "m" (Value)\r
-    );\r
+  );\r
 }\r
 \r
-\r
 /**\r
   Writes the current value of 64-bit MMX Register #1 (MM1).\r
 \r
@@ -385,17 +367,16 @@ AsmWriteMm0 (
 VOID\r
 EFIAPI\r
 AsmWriteMm1 (\r
-  IN      UINT64                    Value\r
+  IN      UINT64  Value\r
   )\r
 {\r
   __asm__ __volatile__ (\r
     "movd  %0, %%mm1"  // %0\r
     :\r
     : "m" (Value)\r
-    );\r
+  );\r
 }\r
 \r
-\r
 /**\r
   Writes the current value of 64-bit MMX Register #2 (MM2).\r
 \r
@@ -408,17 +389,16 @@ AsmWriteMm1 (
 VOID\r
 EFIAPI\r
 AsmWriteMm2 (\r
-  IN      UINT64                    Value\r
+  IN      UINT64  Value\r
   )\r
 {\r
   __asm__ __volatile__ (\r
     "movd  %0, %%mm2"  // %0\r
     :\r
     : "m" (Value)\r
-    );\r
+  );\r
 }\r
 \r
-\r
 /**\r
   Writes the current value of 64-bit MMX Register #3 (MM3).\r
 \r
@@ -431,17 +411,16 @@ AsmWriteMm2 (
 VOID\r
 EFIAPI\r
 AsmWriteMm3 (\r
-  IN      UINT64                    Value\r
+  IN      UINT64  Value\r
   )\r
 {\r
   __asm__ __volatile__ (\r
     "movd  %0, %%mm3"  // %0\r
     :\r
     : "m" (Value)\r
-    );\r
+  );\r
 }\r
 \r
-\r
 /**\r
   Writes the current value of 64-bit MMX Register #4 (MM4).\r
 \r
@@ -454,17 +433,16 @@ AsmWriteMm3 (
 VOID\r
 EFIAPI\r
 AsmWriteMm4 (\r
-  IN      UINT64                    Value\r
+  IN      UINT64  Value\r
   )\r
 {\r
   __asm__ __volatile__ (\r
     "movd  %0, %%mm4"  // %0\r
     :\r
     : "m" (Value)\r
-    );\r
+  );\r
 }\r
 \r
-\r
 /**\r
   Writes the current value of 64-bit MMX Register #5 (MM5).\r
 \r
@@ -477,17 +455,16 @@ AsmWriteMm4 (
 VOID\r
 EFIAPI\r
 AsmWriteMm5 (\r
-  IN      UINT64                    Value\r
+  IN      UINT64  Value\r
   )\r
 {\r
   __asm__ __volatile__ (\r
     "movd  %0, %%mm5"  // %0\r
     :\r
     : "m" (Value)\r
-    );\r
+  );\r
 }\r
 \r
-\r
 /**\r
   Writes the current value of 64-bit MMX Register #6 (MM6).\r
 \r
@@ -500,17 +477,16 @@ AsmWriteMm5 (
 VOID\r
 EFIAPI\r
 AsmWriteMm6 (\r
-  IN      UINT64                    Value\r
+  IN      UINT64  Value\r
   )\r
 {\r
   __asm__ __volatile__ (\r
     "movd  %0, %%mm6"  // %0\r
     :\r
     : "m" (Value)\r
-    );\r
+  );\r
 }\r
 \r
-\r
 /**\r
   Writes the current value of 64-bit MMX Register #7 (MM7).\r
 \r
@@ -523,17 +499,16 @@ AsmWriteMm6 (
 VOID\r
 EFIAPI\r
 AsmWriteMm7 (\r
-  IN      UINT64                    Value\r
+  IN      UINT64  Value\r
   )\r
 {\r
   __asm__ __volatile__ (\r
     "movd  %0, %%mm7"  // %0\r
     :\r
     : "m" (Value)\r
-    );\r
+  );\r
 }\r
 \r
-\r
 /**\r
   Reads the current value of Time Stamp Counter (TSC).\r
 \r
@@ -556,7 +531,7 @@ AsmReadTsc (
     "rdtsc"\r
     : "=a" (LowData),\r
       "=d" (HiData)\r
-    );\r
+  );\r
 \r
   return (((UINT64)HiData) << 32) | LowData;\r
 }\r