aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-11-23 18:06:12 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-11-24 18:29:23 +0900
commite0f4455eaac5947306144afca9c54f7d145fd140 (patch)
treef0c4aa1f32ff02b75c09d8c3df7518cb2d3c588d
parenteo - by default on 64bit only use 47 bits because of luajit (diff)
downloadefl-e0f4455eaac5947306144afca9c54f7d145fd140.tar.gz
eina safepointer - mimic 47 bit eoid patch
same thing as b209b9a92286209281c12e81fd9dd72dc28c7495 but for safeptr
-rw-r--r--src/lib/eina/eina_inline_safepointer.x27
1 files changed, 20 insertions, 7 deletions
diff --git a/src/lib/eina/eina_inline_safepointer.x b/src/lib/eina/eina_inline_safepointer.x
index 7c4cd5505c..1652e84947 100644
--- a/src/lib/eina/eina_inline_safepointer.x
+++ b/src/lib/eina/eina_inline_safepointer.x
@@ -38,16 +38,29 @@ typedef uintptr_t Eina_Sp_Id;
typedef int16_t Eina_Table_Index;
typedef uint16_t Eina_Generation_Counter;
#else
+# ifndef EINA_FULL64BIT
+/* 47 bits */
+# define EINA_BITS_MID_TABLE_ID 11
+# define EINA_BITS_TABLE_ID 11
+# define EINA_BITS_ENTRY_ID 12
+# define EINA_BITS_GENERATION_COUNTER 11
+# define EINA_BITS_FREE_COUNTER 2
+# define EINA_DROPPED_TABLES 2
+# define EINA_DROPPED_ENTRIES 2
+typedef int16_t Eina_Table_Index;
+typedef uint16_t Eina_Generation_Counter;
+# else
/* 64 bits */
-# define EINA_BITS_MID_TABLE_ID 11
-# define EINA_BITS_TABLE_ID 11
-# define EINA_BITS_ENTRY_ID 12
-# define EINA_BITS_GENERATION_COUNTER 28
-# define EINA_BITS_FREE_COUNTER 2
-# define EINA_DROPPED_TABLES 2
-# define EINA_DROPPED_ENTRIES 2
+# define EINA_BITS_MID_TABLE_ID 11
+# define EINA_BITS_TABLE_ID 11
+# define EINA_BITS_ENTRY_ID 12
+# define EINA_BITS_GENERATION_COUNTER 28
+# define EINA_BITS_FREE_COUNTER 2
+# define EINA_DROPPED_TABLES 2
+# define EINA_DROPPED_ENTRIES 2
typedef int16_t Eina_Table_Index;
typedef uint32_t Eina_Generation_Counter;
+# endif
#endif
/* Shifts macros to manipulate the SP id */