Apply re-formatting to C++ in src/ tree.
[alexxy/gromacs.git] / src / gromacs / hardware / identifyavx512fmaunits.cpp
index 3ee4686533482d25c781336ba68c3083b0177125..4138130eef92e6ed1c5d6d882491b02b7f9b8fab 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2017,2018,2019, by the GROMACS development team, led by
+ * Copyright (c) 2017,2018,2019,2020, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -152,9 +152,35 @@ uint64_t timeFmaAndShuffleLoop(uint64_t loopCount)
             "\tmovq %%rdx, %0\n"
             : "=r"(cycles)
             : "r"(loopCount)
-            : "rax", "rbx", "rcx", "rdx", "zmm0", "zmm1", "zmm2", "zmm3", "zmm4", "zmm5", "zmm6",
-              "zmm7", "zmm8", "zmm9", "zmm10", "zmm11", "zmm12", "zmm13", "zmm14", "zmm15", "zmm16",
-              "zmm17", "zmm18", "zmm19", "zmm20", "zmm21", "zmm22", "zmm23", "zmm30");
+            : "rax",
+              "rbx",
+              "rcx",
+              "rdx",
+              "zmm0",
+              "zmm1",
+              "zmm2",
+              "zmm3",
+              "zmm4",
+              "zmm5",
+              "zmm6",
+              "zmm7",
+              "zmm8",
+              "zmm9",
+              "zmm10",
+              "zmm11",
+              "zmm12",
+              "zmm13",
+              "zmm14",
+              "zmm15",
+              "zmm16",
+              "zmm17",
+              "zmm18",
+              "zmm19",
+              "zmm20",
+              "zmm21",
+              "zmm22",
+              "zmm23",
+              "zmm30");
 
     return cycles;
 }
@@ -219,8 +245,22 @@ uint64_t timeFmaOnlyLoop(uint64_t loopCount)
             "\tmovq %%rdx, %0\n"
             : "=r"(cycles)
             : "r"(loopCount)
-            : "rax", "rbx", "rcx", "rdx", "zmm0", "zmm1", "zmm2", "zmm3", "zmm4", "zmm5", "zmm6",
-              "zmm7", "zmm8", "zmm9", "zmm10", "zmm11");
+            : "rax",
+              "rbx",
+              "rcx",
+              "rdx",
+              "zmm0",
+              "zmm1",
+              "zmm2",
+              "zmm3",
+              "zmm4",
+              "zmm5",
+              "zmm6",
+              "zmm7",
+              "zmm8",
+              "zmm9",
+              "zmm10",
+              "zmm11");
 
     return cycles;
 }