[GRASS-SVN] r65986 - grass-addons/grass7/raster/r.wateroutlet.lessmem

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Aug 21 01:11:24 PDT 2015


Author: hcho
Date: 2015-08-21 01:11:24 -0700 (Fri, 21 Aug 2015)
New Revision: 65986

Modified:
   grass-addons/grass7/raster/r.wateroutlet.lessmem/global.h
Log:
r.wateroutlet.lessmem: merge lines

Modified: grass-addons/grass7/raster/r.wateroutlet.lessmem/global.h
===================================================================
--- grass-addons/grass7/raster/r.wateroutlet.lessmem/global.h	2015-08-21 08:09:26 UTC (rev 65985)
+++ grass-addons/grass7/raster/r.wateroutlet.lessmem/global.h	2015-08-21 08:11:24 UTC (rev 65986)
@@ -13,8 +13,7 @@
 #define DIRSIZE (((nrows * ncols) >> 1) + ((nrows * ncols) & 1 ? 1 : 0))
 #define SETDIR(b, r, c, d) \
     b[((r) * ncols + (c)) >> 1] = \
-    (b[((r) * ncols + (c)) >> 1] & \
-     ~(15 << (((r) * ncols + (c)) & 1 ? 4 : 0))) \
+    (b[((r) * ncols + (c)) >> 1] & ~(15 << (((r) * ncols + (c)) & 1 ? 4 : 0))) \
     | ((d) << (((r) * ncols + (c)) & 1 ? 4 : 0))
 #define GETDIR(b, r, c) \
     ((b[((r) * ncols + (c)) >> 1] & (15 << (((r) * ncols + (c)) & 1 ? 4 : 0))) \



More information about the grass-commit mailing list