58 #define MDB_IDL_LOGN 16
59 #define MDB_IDL_DB_SIZE (1<<MDB_IDL_LOGN)
60 #define MDB_IDL_UM_SIZE (1<<(MDB_IDL_LOGN+1))
62 #define MDB_IDL_DB_MAX (MDB_IDL_DB_SIZE-1)
63 #define MDB_IDL_UM_MAX (MDB_IDL_UM_SIZE-1)
65 #define MDB_IDL_SIZEOF(ids) (((ids)[0]+1) * sizeof(MDB_ID))
66 #define MDB_IDL_IS_ZERO(ids) ( (ids)[0] == 0 )
67 #define MDB_IDL_CPY( dst, src ) (memcpy( dst, src, MDB_IDL_SIZEOF( src ) ))
68 #define MDB_IDL_FIRST( ids ) ( (ids)[1] )
69 #define MDB_IDL_LAST( ids ) ( (ids)[(ids)[0]] )
72 #define MDB_IDL_ALLOCLEN( ids ) ( (ids)[-1] )
75 #define mdb_midl_xappend(idl, id) do { \
76 MDB_ID *xidl = (idl), xlen = ++(xidl[0]); \