POOL_ALIGNMENT POOL_PAGE_SIZE : Configurable parameters.

This commit is contained in:
Masaki Muranaka
2012-07-31 16:47:53 +09:00
parent bc7dc06c51
commit 0cee3bb531
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -25,6 +25,12 @@
/* default size of khash table bucket */
//#define KHASH_DEFAULT_SIZE 32
/* allocated memory address alignment */
//#define POOL_ALIGNMENT 4
/* page size of memory pool */
//#define POOL_PAGE_SIZE 16000
/* -DDISABLE_XXXX to drop the feature */
#define DISABLE_REGEXP /* regular expression classes */
//#define DISABLE_SPRINTF /* Kernel.sprintf method */
+1 -1
View File
@@ -9,7 +9,7 @@
#include <string.h>
/* configuration section */
/* allcated memory address should be multiple of POOL_ALLOC_ALIGN */
/* allocated memory address should be multiple of POOL_ALIGNMENT */
/* or undef it if alignment does not matter */
#ifndef POOL_ALIGNMENT
#define POOL_ALIGNMENT 4