summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-04-23 18:48:35 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-04-23 23:39:37 +0900
commitc9ad644be22e5174c84d7108e415dbc8ad0c6422 (patch)
treeb500be5819a3bffe05e3c3268b18e62736ca62c5
parentba57a1c7954224ef6d2dde1ed328745d3d2d8bd0 (diff)
downloadefl-c9ad644be22e5174c84d7108e415dbc8ad0c6422.tar.gz
eoid -> rjid 64bit bit allocations for.. not so much bloat.
-rw-r--r--src/lib/eo/eo_ptr_indirection.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/eo/eo_ptr_indirection.c b/src/lib/eo/eo_ptr_indirection.c
index a77b8544b9..19ca52b95e 100644
--- a/src/lib/eo/eo_ptr_indirection.c
+++ b/src/lib/eo/eo_ptr_indirection.c
@@ -45,16 +45,16 @@
#if SIZEOF_UINTPTR_T == 4
/* 32 bits */
-# define BITS_FOR_IDS_TABLE 8
-# define BITS_FOR_IDS_INTER_TABLE 4
-# define BITS_FOR_ID_IN_TABLE 10
+# define BITS_FOR_IDS_TABLE 8
+# define BITS_FOR_IDS_INTER_TABLE 4
+# define BITS_FOR_ID_IN_TABLE 10
# define BITS_FOR_GENERATION_COUNTER 10
#else
/* 64 bits */
-# define BITS_FOR_IDS_TABLE 8
-# define BITS_FOR_IDS_INTER_TABLE 20
-# define BITS_FOR_ID_IN_TABLE 16
-# define BITS_FOR_GENERATION_COUNTER 20
+# define BITS_FOR_IDS_TABLE 11
+# define BITS_FOR_IDS_INTER_TABLE 11
+# define BITS_FOR_ID_IN_TABLE 12
+# define BITS_FOR_GENERATION_COUNTER 30
#endif
typedef uintptr_t Table_Index;
@@ -69,10 +69,10 @@ typedef uintptr_t Table_Index;
#define SHIFT_FOR_ID_IN_TABLE (BITS_FOR_GENERATION_COUNTER)
/* Maximum ranges */
-#define MAX_IDS_TABLES (1 << BITS_FOR_IDS_TABLE)
+#define MAX_IDS_TABLES (1 << BITS_FOR_IDS_TABLE)
#define MAX_IDS_INTER_TABLES (1 << BITS_FOR_IDS_INTER_TABLE)
-#define MAX_IDS_PER_TABLE (1 << BITS_FOR_ID_IN_TABLE)
-#define MAX_GENERATIONS (1 << BITS_FOR_GENERATION_COUNTER)
+#define MAX_IDS_PER_TABLE (1 << BITS_FOR_ID_IN_TABLE)
+#define MAX_GENERATIONS (1 << BITS_FOR_GENERATION_COUNTER)
/* Table */
typedef struct