Changeset: 5af03ec13cc8 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=5af03ec13cc8
Modified Files:
gdk/gdk.h
gdk/gdk_aggr.c
gdk/gdk_atoms.h
Branch: int128
Log Message:
fixed/updated some comments regarding new type "hge"
diffs (55 lines):
diff --git a/gdk/gdk.h b/gdk/gdk.h
--- a/gdk/gdk.h
+++ b/gdk/gdk.h
@@ -119,6 +119,8 @@
* The IEEE @strong{double} type.
* @item lng:
* Longs: the C @strong{long long} type (64-bit integers).
+ * @item hge:
+ * "huge" integers: the GCC @strong{__int128} type (128-bit integers).
* @item str:
* UTF-8 strings (Unicode). A zero-terminated byte sequence.
* @item bat:
@@ -2839,6 +2841,9 @@ gdk_export int ALIGNsetH(BAT *b1, BAT *b
* @item HASHloop_lng
* @tab
* (BAT *b; Hash *h, size_t idx; lng *value, BUN w)
+ * @item HASHloop_hge
+ * @tab
+ * (BAT *b; Hash *h, size_t idx; hge *value, BUN w)
* @item HASHloop_dbl
* @tab
* (BAT *b; Hash *h, size_t idx; dbl *value, BUN w)
diff --git a/gdk/gdk_aggr.c b/gdk/gdk_aggr.c
--- a/gdk/gdk_aggr.c
+++ b/gdk/gdk_aggr.c
@@ -1507,7 +1507,7 @@ BATgroupavg(BAT **bnp, BAT **cntsp, BAT
TYPE x, a; \
\
/* first try to calculate the sum of all values into a */ \
- /* lng_hge */ \
+ /* lng/hge */ \
for (;;) { \
if (cand) { \
if (cand == candend) \
@@ -1535,7 +1535,7 @@ BATgroupavg(BAT **bnp, BAT **cntsp, BAT
if (0) { \
overflow##TYPE: \
/* we get here if sum(x[0],...,x[i]) doesn't */ \
- /* fit in a lng_hge but sum(x[0],...,x[i-1]) did */ \
+ /* fit in a lng/hge but sum(x[0],...,x[i-1]) did */ \
/* the variable sum contains that sum */ \
/* the rest of the calculation is done */ \
/* according to the loop invariant described */ \
diff --git a/gdk/gdk_atoms.h b/gdk/gdk_atoms.h
--- a/gdk/gdk_atoms.h
+++ b/gdk/gdk_atoms.h
@@ -178,7 +178,7 @@ gdk_export const ptr ptr_nil;
/*
* @- Derived types
* In all algorithms across GDK, you will find switches on the types (
- * bte, sht, int, wrd, flt, dbl, lng, str). They respectively
+ * bte, sht, int, wrd, flt, dbl, lng, hge, str). They respectively
* represent an octet, a 16-bit int, a 32-bit int, a 32-bit float, a
* 64-bit double, a 64-bit int, and a pointer-sized location of a
* char-buffer (ended by a zero char).
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list