glib/tsrc/BC/tests/slice-test.c
changeset 18 47c74d1534e1
parent 0 e4d67989cc36
child 45 4b03adbd26ca
child 57 2efc27d87e1c
equal deleted inserted replaced
0:e4d67989cc36 18:47c74d1534e1
    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>
    24 
    25 
    25 #define quick_rand32()  (rand_accu = 1664525 * rand_accu + 1013904223, rand_accu)
    26 #define quick_rand32()  (rand_accu = 1664525 * rand_accu + 1013904223, rand_accu)
    26 static guint    prime_size = 1021; // 769; // 509
    27 static guint    prime_size = 1021; // 769; // 509
    27 static gboolean clean_memchunks = FALSE;
    28 static gboolean clean_memchunks = FALSE;
    28 static guint    number_of_blocks = 10000;          /* total number of blocks allocated */
    29 static guint    number_of_blocks = 10000;          /* total number of blocks allocated */