Changeset: 1d4e590f8e4d for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=1d4e590f8e4d
Modified Files:
        gdk/gdk_bbp.c
Branch: Feb2013
Log Message:

Use (1 << 31) to show correspondence with (swap_first << 31).


diffs (21 lines):

diff --git a/gdk/gdk_bbp.c b/gdk/gdk_bbp.c
--- a/gdk/gdk_bbp.c
+++ b/gdk/gdk_bbp.c
@@ -2624,7 +2624,7 @@ BBPtrim_scan(bat bbppos, bat bbplim)
                GDKqsort(lastused, bbptrim, NULL, bbptrimlast,
                         sizeof(lastused[0]), sizeof(bbptrim[0]), TYPE_int);
                for (i = bbptrimfirst = 0; i < bbptrimlast; i++) {
-                       MEMDEBUG THRprintf(GDKstdout, "#TRIMSCAN: %11d%c 
%9d=%s\t(#" BUNFMT ")\n", BBPLASTUSED(lastused[i]), (lastused[i] & 0x80000000) 
? '*' : ' ', i, BBPname(bbptrim[i].bid), bbptrim[i].cnt);
+                       MEMDEBUG THRprintf(GDKstdout, "#TRIMSCAN: %11d%c 
%9d=%s\t(#" BUNFMT ")\n", BBPLASTUSED(lastused[i]), (lastused[i] & (1 << 31)) ? 
'*' : ' ', i, BBPname(bbptrim[i].bid), bbptrim[i].cnt);
 
                        bbptrim[i].next = i + 1;
                }
@@ -2863,7 +2863,7 @@ BBPtrim(size_t target)
                        }
                        MEMDEBUG THRprintf(GDKstdout, "#BBPTRIM: %8d%c %7d 
%s\n",
                                           BBPLASTUSED(lastused[i]),
-                                          lastused[i] & 0x80000000 ? '*' : ' ',
+                                          lastused[i] & (1 << 31) ? '*' : ' ',
                                           (int) bbptrim[i].bid,
                                           BBPname(bbptrim[i].bid));
 
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to