Changeset: a823ad4e6c38 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a823ad4e6c38
Modified Files:
gdk/gdk_search.c
gdk/gdk_setop.c
Branch: headless
Log Message:
Use type-specific bunfastins macros where we can.
diffs (46 lines):
diff --git a/gdk/gdk_search.c b/gdk/gdk_search.c
--- a/gdk/gdk_search.c
+++ b/gdk/gdk_search.c
@@ -398,7 +398,11 @@
COLloop(b, p, q) {
oid i = HASHprobe(b->hash, BUNhead(bi, p));
- bunfastins(bn, &i);
+#if SIZEOF_OID == SIZEOF_INT
+ bunfastins_int(bn, &i);
+#else
+ bunfastins_lng(bn, &i);
+#endif
}
bn->sorted = FALSE;
return bn;
diff --git a/gdk/gdk_setop.c b/gdk/gdk_setop.c
--- a/gdk/gdk_setop.c
+++ b/gdk/gdk_setop.c
@@ -83,7 +83,7 @@
COLloop(b, p, q) {
v = BUNhead(bi, p);
if (prev == NULL || ATOMcmp(tp, prev, v) != 0)
- bunfastins(bn, &p);
+ bunfastins_oid(bn, &p);
prev = v;
}
} else {
@@ -133,7 +133,7 @@
;
if (r == BUN_NONE) {
/* it's a new value */
- bunfastins(bn, &p);
+ bunfastins_oid(bn, &p);
link[p] = hash[hv];
hash[hv] = p;
}
@@ -244,7 +244,7 @@
v = BUNhead(li, p);
/* v == nil is equivalent to v not in r */
if (((!l->nonil && (*cmp)(v, nilptr) == 0) || BUNfnd(r, v) ==
BUN_NONE) == diff)
- bunfastins(bn, &p);
+ bunfastins_oid(bn, &p);
}
return bn;
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list