glib/tsrc/BC/tests/slice-test.c
branchRCL_3
changeset 57 2efc27d87e1c
parent 56 acd3cd4aaceb
equal deleted inserted replaced
56:acd3cd4aaceb 57:2efc27d87e1c
    19 #include <glib.h>
    19 #include <glib.h>
    20 
    20 
    21 #include <stdio.h>
    21 #include <stdio.h>
    22 #include <string.h>
    22 #include <string.h>
    23 #include <sys/time.h> // gettimeofday
    23 #include <sys/time.h> // gettimeofday
    24 #include <stdlib.h>
       
    25 
    24 
    26 #define quick_rand32()  (rand_accu = 1664525 * rand_accu + 1013904223, rand_accu)
    25 #define quick_rand32()  (rand_accu = 1664525 * rand_accu + 1013904223, rand_accu)
    27 static guint    prime_size = 1021; // 769; // 509
    26 static guint    prime_size = 1021; // 769; // 509
    28 static gboolean clean_memchunks = FALSE;
    27 static gboolean clean_memchunks = FALSE;
    29 static guint    number_of_blocks = 10000;          /* total number of blocks allocated */
    28 static guint    number_of_blocks = 10000;          /* total number of blocks allocated */