raster pushed a commit to branch master.
commit c9ad644be22e5174c84d7108e415dbc8ad0c6422
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date: Tue Apr 23 18:48:35 2013 +0900
eoid -> rjid 64bit bit allocations for.. not so much bloat.
---
src/lib/eo/eo_ptr_indirection.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/lib/eo/eo_ptr_indirection.c b/src/lib/eo/eo_ptr_indirection.c
index a77b854..19ca52b 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
--
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr