Back to index

openldap  2.4.31
Defines
idl.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define BDB_IDL_LOGN   16 /* DB_SIZE is 2^16, UM_SIZE is 2^17 */
#define BDB_IDL_DB_SIZE   (1<<BDB_IDL_LOGN)
#define BDB_IDL_UM_SIZE   (1<<(BDB_IDL_LOGN+1))
#define BDB_IDL_UM_SIZEOF   (BDB_IDL_UM_SIZE * sizeof(ID))
#define BDB_IDL_DB_MAX   (BDB_IDL_DB_SIZE-1)
#define BDB_IDL_UM_MAX   (BDB_IDL_UM_SIZE-1)
#define BDB_IDL_IS_RANGE(ids)   ((ids)[0] == NOID)
#define BDB_IDL_RANGE_SIZE   (3)
#define BDB_IDL_RANGE_SIZEOF   (BDB_IDL_RANGE_SIZE * sizeof(ID))
#define BDB_IDL_SIZEOF(ids)
#define BDB_IDL_RANGE_FIRST(ids)   ((ids)[1])
#define BDB_IDL_RANGE_LAST(ids)   ((ids)[2])
#define BDB_IDL_RANGE(ids, f, l)
#define BDB_IDL_ZERO(ids)
#define BDB_IDL_IS_ZERO(ids)   ( (ids)[0] == 0 )
#define BDB_IDL_IS_ALL(range, ids)
#define BDB_IDL_CPY(dst, src)   (AC_MEMCPY( dst, src, BDB_IDL_SIZEOF( src ) ))
#define BDB_IDL_ID(bdb, ids, id)   BDB_IDL_RANGE( ids, id, ((bdb)->bi_lastid) )
#define BDB_IDL_ALL(bdb, ids)   BDB_IDL_RANGE( ids, 1, ((bdb)->bi_lastid) )
#define BDB_IDL_FIRST(ids)   ( (ids)[1] )
#define BDB_IDL_LAST(ids)
#define BDB_IDL_N(ids)

Define Documentation

#define BDB_IDL_ALL (   bdb,
  ids 
)    BDB_IDL_RANGE( ids, 1, ((bdb)->bi_lastid) )

Definition at line 62 of file idl.h.

#define BDB_IDL_CPY (   dst,
  src 
)    (AC_MEMCPY( dst, src, BDB_IDL_SIZEOF( src ) ))

Definition at line 59 of file idl.h.

#define BDB_IDL_DB_MAX   (BDB_IDL_DB_SIZE-1)

Definition at line 28 of file idl.h.

#define BDB_IDL_DB_SIZE   (1<<BDB_IDL_LOGN)

Definition at line 24 of file idl.h.

#define BDB_IDL_FIRST (   ids)    ( (ids)[1] )

Definition at line 64 of file idl.h.

#define BDB_IDL_ID (   bdb,
  ids,
  id 
)    BDB_IDL_RANGE( ids, id, ((bdb)->bi_lastid) )

Definition at line 61 of file idl.h.

#define BDB_IDL_IS_ALL (   range,
  ids 
)
Value:
( (ids)[0] == NOID \
       && (ids)[1] <= (range)[1] && (range)[2] <= (ids)[2] )

Definition at line 56 of file idl.h.

#define BDB_IDL_IS_RANGE (   ids)    ((ids)[0] == NOID)

Definition at line 32 of file idl.h.

#define BDB_IDL_IS_ZERO (   ids)    ( (ids)[0] == 0 )

Definition at line 55 of file idl.h.

#define BDB_IDL_LAST (   ids)
Value:
( BDB_IDL_IS_RANGE(ids) \
       ? (ids)[2] : (ids)[(ids)[0]] )

Definition at line 65 of file idl.h.

#define BDB_IDL_LOGN   16 /* DB_SIZE is 2^16, UM_SIZE is 2^17 */

Definition at line 23 of file idl.h.

#define BDB_IDL_N (   ids)
Value:
( BDB_IDL_IS_RANGE(ids) \
       ? ((ids)[2]-(ids)[1])+1 : (ids)[0] )

Definition at line 68 of file idl.h.

#define BDB_IDL_RANGE (   ids,
  f,
  l 
)
Value:
do { \
              (ids)[0] = NOID; \
              (ids)[1] = (f);  \
              (ids)[2] = (l);  \
       } while(0)

Definition at line 41 of file idl.h.

#define BDB_IDL_RANGE_FIRST (   ids)    ((ids)[1])

Definition at line 38 of file idl.h.

#define BDB_IDL_RANGE_LAST (   ids)    ((ids)[2])

Definition at line 39 of file idl.h.

#define BDB_IDL_RANGE_SIZE   (3)

Definition at line 33 of file idl.h.

#define BDB_IDL_RANGE_SIZEOF   (BDB_IDL_RANGE_SIZE * sizeof(ID))

Definition at line 34 of file idl.h.

#define BDB_IDL_SIZEOF (   ids)
Value:
((BDB_IDL_IS_RANGE(ids) \
       ? BDB_IDL_RANGE_SIZE : ((ids)[0]+1)) * sizeof(ID))

Definition at line 35 of file idl.h.

#define BDB_IDL_UM_MAX   (BDB_IDL_UM_SIZE-1)

Definition at line 30 of file idl.h.

#define BDB_IDL_UM_SIZE   (1<<(BDB_IDL_LOGN+1))

Definition at line 25 of file idl.h.

#define BDB_IDL_UM_SIZEOF   (BDB_IDL_UM_SIZE * sizeof(ID))

Definition at line 26 of file idl.h.

#define BDB_IDL_ZERO (   ids)
Value:
do { \
              (ids)[0] = 0; \
              (ids)[1] = 0; \
              (ids)[2] = 0; \
       } while(0)

Definition at line 48 of file idl.h.