forked from enlightenment/efl
eina safepointer - mimic 47 bit eoid patch
same thing as b209b9a92286209281c12e81fd9dd72dc28c7495 but for safeptr
This commit is contained in:
parent
74327ddbc8
commit
e0f4455eaa
|
@ -38,16 +38,29 @@ typedef uintptr_t Eina_Sp_Id;
|
||||||
typedef int16_t Eina_Table_Index;
|
typedef int16_t Eina_Table_Index;
|
||||||
typedef uint16_t Eina_Generation_Counter;
|
typedef uint16_t Eina_Generation_Counter;
|
||||||
#else
|
#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 */
|
/* 64 bits */
|
||||||
# define EINA_BITS_MID_TABLE_ID 11
|
# define EINA_BITS_MID_TABLE_ID 11
|
||||||
# define EINA_BITS_TABLE_ID 11
|
# define EINA_BITS_TABLE_ID 11
|
||||||
# define EINA_BITS_ENTRY_ID 12
|
# define EINA_BITS_ENTRY_ID 12
|
||||||
# define EINA_BITS_GENERATION_COUNTER 28
|
# define EINA_BITS_GENERATION_COUNTER 28
|
||||||
# define EINA_BITS_FREE_COUNTER 2
|
# define EINA_BITS_FREE_COUNTER 2
|
||||||
# define EINA_DROPPED_TABLES 2
|
# define EINA_DROPPED_TABLES 2
|
||||||
# define EINA_DROPPED_ENTRIES 2
|
# define EINA_DROPPED_ENTRIES 2
|
||||||
typedef int16_t Eina_Table_Index;
|
typedef int16_t Eina_Table_Index;
|
||||||
typedef uint32_t Eina_Generation_Counter;
|
typedef uint32_t Eina_Generation_Counter;
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Shifts macros to manipulate the SP id */
|
/* Shifts macros to manipulate the SP id */
|
||||||
|
|
Loading…
Reference in New Issue