eina safepointer - mimic 47 bit eoid patch

same thing as b209b9a92286209281c12e81fd9dd72dc28c7495 but for safeptr
This commit is contained in:
Carsten Haitzler 2017-11-23 18:06:12 +09:00
parent 74327ddbc8
commit e0f4455eaa
1 changed files with 20 additions and 7 deletions

View File

@ -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 */