Update of /cvsroot/monetdb/MonetDB5/src/modules/kernel
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv20230

Modified Files:
        microbenchmark.mx 
Log Message:
move BATsetcount before BATloop so that the BATs can be filled in 


Index: microbenchmark.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/modules/kernel/microbenchmark.mx,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- microbenchmark.mx   11 Jan 2008 10:41:36 -0000      1.15
+++ microbenchmark.mx   16 Jan 2008 15:32:49 -0000      1.16
@@ -89,13 +89,13 @@
        }
 
        firstbun = BUNfirst(b);
+       BATsetcount(b, n);
        /* create BUNs with uniform distribution */
        BATloop(b, p, q) {
                *(int *) Tloc(b, p) = j;
                if (++j >= *domain)
                        j = 0;
        }
-       BATsetcount(b, n);
 
        /* mix BUNs randomly */
        for (r = i = 0; i < n; i++) {
@@ -180,6 +180,7 @@
        }
        itab[m] += r;
 
+       BATsetcount(b, n);
        /* create BUNs with normal distribution */
        BATloop(b, p, q) {
                while (itab[r] == 0)
@@ -187,7 +188,6 @@
                itab[r]--;
                *(int *) Tloc(b, p) = (int) r;
        }
-       BATsetcount(b, n);
        GDKfree(itab);
 
        /* mix BUNs randomly */


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to