summaryrefslogtreecommitdiff
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
parent74327ddbc8405b4be0fddd2455bd73383596b1d6 (diff)
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 7c4cd55..1652e84 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;
38typedef int16_t Eina_Table_Index; 38typedef int16_t Eina_Table_Index;
39typedef uint16_t Eina_Generation_Counter; 39typedef uint16_t Eina_Generation_Counter;
40#else 40#else
41# ifndef EINA_FULL64BIT
42/* 47 bits */
43# define EINA_BITS_MID_TABLE_ID 11
44# define EINA_BITS_TABLE_ID 11
45# define EINA_BITS_ENTRY_ID 12
46# define EINA_BITS_GENERATION_COUNTER 11
47# define EINA_BITS_FREE_COUNTER 2
48# define EINA_DROPPED_TABLES 2
49# define EINA_DROPPED_ENTRIES 2
50typedef int16_t Eina_Table_Index;
51typedef uint16_t Eina_Generation_Counter;
52# else
41/* 64 bits */ 53/* 64 bits */
42# define EINA_BITS_MID_TABLE_ID 11 54# define EINA_BITS_MID_TABLE_ID 11
43# define EINA_BITS_TABLE_ID 11 55# define EINA_BITS_TABLE_ID 11
44# define EINA_BITS_ENTRY_ID 12 56# define EINA_BITS_ENTRY_ID 12
45# define EINA_BITS_GENERATION_COUNTER 28 57# define EINA_BITS_GENERATION_COUNTER 28
46# define EINA_BITS_FREE_COUNTER 2 58# define EINA_BITS_FREE_COUNTER 2
47# define EINA_DROPPED_TABLES 2 59# define EINA_DROPPED_TABLES 2
48# define EINA_DROPPED_ENTRIES 2 60# define EINA_DROPPED_ENTRIES 2
49typedef int16_t Eina_Table_Index; 61typedef int16_t Eina_Table_Index;
50typedef uint32_t Eina_Generation_Counter; 62typedef uint32_t Eina_Generation_Counter;
63# endif
51#endif 64#endif
52 65
53/* Shifts macros to manipulate the SP id */ 66/* Shifts macros to manipulate the SP id */