clang-tidy modernize
[alexxy/gromacs.git] / src / gromacs / timing / cyclecounter.h
index 2c78e68e10f0040192cb58b9e265e54b7efbf66e..40dddfae2a0cd7e070a13b54e4d87b86db3bc8e6 100644 (file)
@@ -199,7 +199,7 @@ static __inline__ gmx_cycles_t gmx_cycles_read(void)
 }
 #elif ((defined(__GNUC__) || defined(__INTEL_COMPILER) || defined(__PATHSCALE__) || defined(__PGIC__)) && \
     (defined(__i386__) || defined(__x86_64__)) && !defined(_CRAYC))
-static __inline__ gmx_cycles_t gmx_cycles_read(void)
+static __inline__ gmx_cycles_t gmx_cycles_read()
 {
     /* x86 with GCC inline assembly - pentium TSC register */
     unsigned       low, high;
@@ -435,10 +435,10 @@ static __inline__ bool gmx_cycles_have_counter(void)
 }
 #elif ((defined(__GNUC__) || defined(__INTEL_COMPILER) || defined(__PATHSCALE__) || defined(__PGIC__) || defined(_CRAYC)) && \
     (defined(__i386__) || defined(__x86_64__)))
-static __inline__ bool gmx_cycles_have_counter(void)
+static __inline__ bool gmx_cycles_have_counter()
 {
     /* x86 or x86-64 with GCC inline assembly - pentium TSC register */
-    return 1;
+    return true;
 }
 #elif ((defined __aarch64__) && (defined(__GNUC__) || defined(__INTEL_COMPILER) || defined(__PATHSCALE__) || defined(__PGIC__)))
 static __inline bool gmx_cycles_have_counter(void)