|
From: <kin...@us...> - 2025-08-15 23:36:31
|
Revision: 7277
http://sourceforge.net/p/teem/code/7277
Author: kindlmann
Date: 2025-08-15 23:36:28 +0000 (Fri, 15 Aug 2025)
Log Message:
-----------
clang-format tweaks
Modified Paths:
--------------
teem/trunk/src/nrrd/nrrdMacros.h
Modified: teem/trunk/src/nrrd/nrrdMacros.h
===================================================================
--- teem/trunk/src/nrrd/nrrdMacros.h 2025-08-15 23:35:38 UTC (rev 7276)
+++ teem/trunk/src/nrrd/nrrdMacros.h 2025-08-15 23:36:28 UTC (rev 7277)
@@ -42,7 +42,7 @@
AIR_AFFINE(0, (idx) + 0.5, (size), (min), (max))
/* index to position, node centering */
-#define NRRD_NODE_POS(min, max, size, idx) AIR_AFFINE(0, (idx), (size)-1, (min), (max))
+#define NRRD_NODE_POS(min, max, size, idx) AIR_AFFINE(0, (idx), (size) - 1, (min), (max))
/* index to position, either centering */
#define NRRD_POS(center, min, max, size, idx) \
@@ -54,7 +54,7 @@
(AIR_AFFINE((min), (pos), (max), 0, (size)) - 0.5)
/* position to index, node centering */
-#define NRRD_NODE_IDX(min, max, size, pos) AIR_AFFINE((min), (pos), (max), 0, (size)-1)
+#define NRRD_NODE_IDX(min, max, size, pos) AIR_AFFINE((min), (pos), (max), 0, (size) - 1)
/* position to index, either centering */
#define NRRD_IDX(center, min, max, size, pos) \
@@ -72,7 +72,7 @@
*/
#define NRRD_SPACING(center, min, max, size) \
(nrrdCenterCell == center ? ((max) - (min)) / AIR_CAST(double, size) \
- : ((max) - (min)) / (AIR_CAST(double, (size)-1)))
+ : ((max) - (min)) / (AIR_CAST(double, (size) - 1)))
/*
******** NRRD_COORD_UPDATE
@@ -103,7 +103,7 @@
(coord)[ddd + 1]++; \
} \
if (dim) { \
- (coord)[(dim)-1] = AIR_MIN((coord)[(dim)-1], (size)[(dim)-1] - 1); \
+ (coord)[(dim) - 1] = AIR_MIN((coord)[(dim) - 1], (size)[(dim) - 1] - 1); \
} \
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|