src/ucx/cx/utils.h

changeset 438
22eca559aded
parent 415
d938228c382e
child 490
d218607f5a7e
--- a/src/ucx/cx/utils.h	Sun Nov 20 12:43:44 2022 +0100
+++ b/src/ucx/cx/utils.h	Sat Nov 26 17:07:08 2022 +0100
@@ -51,9 +51,7 @@
  */
 #define cx_for_n(varname, n) for (size_t varname = 0 ; (varname) < (n) ; (varname)++)
 
-/* ----------------------
- * cx_szmul() definition.
- * ---------------------- */
+// cx_szmul() definition
 
 #if (__GNUC__ >= 5 || defined(__clang__)) && !defined(CX_NO_SZMUL_BUILTIN)
 #define CX_SZMUL_BUILTIN
@@ -72,7 +70,7 @@
  * otherwise
  */
 #define cx_szmul(a, b, result) __builtin_umul_overflow(a, b, result)
-#else /* __WORDSIZE != 32 */
+#else // __WORDSIZE != 32
 /**
  * Alias for \c __builtin_umull_overflow.
  *
@@ -86,9 +84,9 @@
  * otherwise
  */
 #define cx_szmul(a, b, result) __builtin_umull_overflow(a, b, result)
-#endif /* __WORDSIZE */
+#endif // __WORDSIZE
 
-#else /* no GNUC or clang bultin */
+#else // no GNUC or clang bultin
 
 /**
  * Performs a multiplication of size_t values and checks for overflow.
@@ -122,4 +120,4 @@
 }
 #endif
 
-#endif /* UCX_UTILS_H */
+#endif // UCX_UTILS_H

mercurial