Changeset: ce1141f0d8a1 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/ce1141f0d8a1
Modified Files:
        gdk/gdk_group.c
Branch: default
Log Message:

Use constants inside loops


diffs (21 lines):

diff --git a/gdk/gdk_group.c b/gdk/gdk_group.c
--- a/gdk/gdk_group.c
+++ b/gdk/gdk_group.c
@@ -611,7 +611,7 @@ ctz(oid x)
                if (ci.tpe == cand_dense) {                             \
                        TIMEOUT_LOOP_IDX(r, cnt, timeoffset) {          \
                                oid o = canditer_next_dense(&ci);       \
-                               p = o - b->hseqbase;                    \
+                               p = o - hseqb;                  \
                                uint##BG##_t x = GV;                    \
                                if ((v = sgrps[x]) == (uint##BG##_t) ~0 && ngrp 
< (1 << BG)) { \
                                        sgrps[x] = v = (uint##BG##_t) ngrp++; \
@@ -628,7 +628,7 @@ ctz(oid x)
                } else {                                                \
                        TIMEOUT_LOOP_IDX(r, cnt, timeoffset) {          \
                                oid o = canditer_next(&ci);             \
-                               p = o - b->hseqbase;                    \
+                               p = o - hseqb;                  \
                                uint##BG##_t x = GV;                    \
                                if ((v = sgrps[x]) == (uint##BG##_t) ~0 && ngrp 
< (1 << BG)) { \
                                        sgrps[x] = v = (uint##BG##_t) ngrp++; \
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to