11 #define _POSIX_SOURCE 1
16 #include "omalloc/omConfig.h"
17 #include "omalloc/omDerivedConfig.h"
22 #if SIZEOF_SYSTEM_PAGE > 4096
23 #define MIN_BIN_BLOCKS 8
26 #define MIN_BIN_BLOCKS 4
31 #define OM_MAX_BLOCK_SIZE ((SIZEOF_OM_BIN_PAGE / MIN_BIN_BLOCKS) & ~(SIZEOF_STRICT_ALIGNMENT - 1))
39 80, 96, 112, 128, 144,
74 printf(
"error");fflush(stdout);
80 size_t size, align_size = SIZEOF_OM_ALIGNMENT;
82 #ifdef OM_ALIGNMENT_NEEDS_WORK
92 #ifdef OM_ALIGNMENT_NEEDS_WORK
93 if (
size >= n && align_size != SIZEOF_STRICT_ALIGNMENT)
95 align_size = SIZEOF_STRICT_ALIGNMENT;
107 int main(
int argc,
char* argv[])
109 int max_bin_index = 0;
111 #ifdef OM_HAVE_DENSE_BIN_DISTRIBUTION
122 "#ifndef OM_TABLES_H\n"
123 "#define OM_TABLES_H\n"
124 "#define OM_MAX_BLOCK_SIZE %d\n"
125 "#define OM_MAX_BIN_INDEX %d\n"
126 "#define OM_SIZEOF_UNIQUE_MAX_BLOCK_THRESHOLD %d\n"
127 "#endif /* OM_TABLES_H */\n"
#define SIZEOF_OM_BIN_PAGE
int main(int argc, char *argv[])
int GetMaxBlockThreshold()
size_t om_BinSize[SIZEOF_OM_BIN_PAGE/MIN_BIN_BLOCKS]
#define OM_MAX_BLOCK_SIZE