Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs
gc_hdrs.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  bi

Defines

#define LOG_BOTTOM_SZ   10
#define LOG_TOP_SZ   (WORDSZ - LOG_BOTTOM_SZ - LOG_HBLKSIZE)
#define TOP_SZ   (1 << LOG_TOP_SZ)
#define BOTTOM_SZ   (1 << LOG_BOTTOM_SZ)
#define MAX_JUMP   (HBLKSIZE - 1)
#define HDR_FROM_BI(bi, p)   ((bi)->index[((word)(p) >> LOG_HBLKSIZE) & (BOTTOM_SZ - 1)])
#define BI(p)
#define HDR_INNER(p)   HDR_FROM_BI(BI(p),p)
#define HDR(p)   HDR_INNER(p)
#define GET_BI(p, bottom_indx)   (bottom_indx) = BI(p)
#define GET_HDR(p, hhdr)   (hhdr) = HDR(p)
#define SET_HDR(p, hhdr)   HDR_INNER(p) = (hhdr)
#define GET_HDR_ADDR(p, ha)   (ha) = &(HDR_INNER(p))
#define IS_FORWARDING_ADDR_OR_NIL(hhdr)   ((unsigned long) (hhdr) <= MAX_JUMP)
#define FORWARDED_ADDR(h, hhdr)   ((struct hblk *)(h) - (unsigned long)(hhdr))

Typedefs

typedef struct hblkhdr
typedef struct bi bottom_index

Class Documentation

struct bi

Definition at line 48 of file gc_hdrs.h.

Collaboration diagram for bi:
Class Members
struct bi * asc_link
hdr * index
word key

Define Documentation

#define BI (   p)
Value:

Definition at line 86 of file gc_hdrs.h.

Definition at line 46 of file gc_hdrs.h.

#define FORWARDED_ADDR (   h,
  hhdr 
)    ((struct hblk *)(h) - (unsigned long)(hhdr))

Definition at line 132 of file gc_hdrs.h.

#define GET_BI (   p,
  bottom_indx 
)    (bottom_indx) = BI(p)

Definition at line 94 of file gc_hdrs.h.

#define GET_HDR (   p,
  hhdr 
)    (hhdr) = HDR(p)

Definition at line 95 of file gc_hdrs.h.

#define GET_HDR_ADDR (   p,
  ha 
)    (ha) = &(HDR_INNER(p))

Definition at line 97 of file gc_hdrs.h.

#define HDR (   p)    HDR_INNER(p)

Definition at line 92 of file gc_hdrs.h.

#define HDR_FROM_BI (   bi,
  p 
)    ((bi)->index[((word)(p) >> LOG_HBLKSIZE) & (BOTTOM_SZ - 1)])

Definition at line 83 of file gc_hdrs.h.

#define HDR_INNER (   p)    HDR_FROM_BI(BI(p),p)

Definition at line 88 of file gc_hdrs.h.

#define IS_FORWARDING_ADDR_OR_NIL (   hhdr)    ((unsigned long) (hhdr) <= MAX_JUMP)

Definition at line 128 of file gc_hdrs.h.

Definition at line 38 of file gc_hdrs.h.

Definition at line 41 of file gc_hdrs.h.

#define MAX_JUMP   (HBLKSIZE - 1)

Definition at line 81 of file gc_hdrs.h.

#define SET_HDR (   p,
  hhdr 
)    HDR_INNER(p) = (hhdr)

Definition at line 96 of file gc_hdrs.h.

#define TOP_SZ   (1 << LOG_TOP_SZ)

Definition at line 45 of file gc_hdrs.h.


Typedef Documentation

typedef struct bi bottom_index
typedef struct hblkhdr

Definition at line 17 of file gc_hdrs.h.