comparison vmalloc.h @ 126:d0aa5a796fc5

touch memory at start of algorithm to make it comparable
author Merten Sach <msach@mailbox.tu-berlin.de>
date Wed, 07 Sep 2011 14:33:22 +0200
parents e29bb31df078
children 99798e4438a6 0320b49ca013
comparison
equal deleted inserted replaced
11:773245385662 12:f1d0e9e10f7b
14 #include <inttypes.h> 14 #include <inttypes.h>
15 #include "VMS_primitive_data_types.h" 15 #include "VMS_primitive_data_types.h"
16 16
17 #define SMALL_CHUNK_SIZE 32 17 #define SMALL_CHUNK_SIZE 32
18 #define SMALL_CHUNK_COUNT 4 18 #define SMALL_CHUNK_COUNT 4
19 #define LOWER_BOUND 128 19 #define LOWER_BOUND 128 //Biggest chunk size that is created for the small chunks
20 #define CHUNK_INCREASE_RATE 1.25 20 #define BIG_LOWER_BOUND 160 //Smallest chunk size that is created for the big chunks
21 #define MAX_SMALL_CHUNKS 20
22 #define SMALL_CHUNKS_ALLOCATION 5
23 21
24 #define LOG54 0.3219280948873623 22 #define LOG54 0.3219280948873623
25 #define LOG128 7 23 #define LOG128 7
26 24
27 typedef struct _MallocProlog MallocProlog; 25 typedef struct _MallocProlog MallocProlog;