Back to index

plt-scheme  4.2.1
Defines | Typedefs | Functions
gc_typed.h File Reference
#include "gc.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define GC_WORDSZ   (8*sizeof(GC_word))
#define GC_get_bit(bm, index)   (((bm)[index/GC_WORDSZ] >> (index%GC_WORDSZ)) & 1)
#define GC_set_bit(bm, index)   (bm)[index/GC_WORDSZ] |= ((GC_word)1 << (index%GC_WORDSZ))
#define GC_WORD_OFFSET(t, f)   (offsetof(t,f)/sizeof(GC_word))
#define GC_WORD_LEN(t)   (sizeof(t)/ sizeof(GC_word))
#define GC_BITMAP_SIZE(t)   ((GC_WORD_LEN(t) + GC_WORDSZ-1)/GC_WORDSZ)
#define GC_MALLOC_EXPLICITLY_TYPED(bytes, d)   GC_malloc_explicitly_typed(bytes, d)
#define GC_CALLOC_EXPLICITLY_TYPED(n, bytes, d)   GC_calloc_explicitly_typed(n, bytes, d)

Typedefs

typedef GC_wordGC_bitmap
typedef GC_word GC_descr

Functions

GC_API GC_descr GC_make_descriptor GC_PROTO ((GC_bitmap bm, size_t len))
GC_API GC_PTR
GC_malloc_explicitly_typed 
GC_PROTO ((size_t size_in_bytes, GC_descr d))
GC_API GC_PTR
GC_calloc_explicitly_typed 
GC_PROTO ((size_t nelements, size_t element_size_in_bytes, GC_descr d))

Define Documentation

#define GC_BITMAP_SIZE (   t)    ((GC_WORD_LEN(t) + GC_WORDSZ-1)/GC_WORDSZ)

Definition at line 46 of file gc_typed.h.

#define GC_CALLOC_EXPLICITLY_TYPED (   n,
  bytes,
 
)    GC_calloc_explicitly_typed(n, bytes, d)

Definition at line 104 of file gc_typed.h.

#define GC_get_bit (   bm,
  index 
)    (((bm)[index/GC_WORDSZ] >> (index%GC_WORDSZ)) & 1)

Definition at line 40 of file gc_typed.h.

#define GC_MALLOC_EXPLICITLY_TYPED (   bytes,
 
)    GC_malloc_explicitly_typed(bytes, d)

Definition at line 102 of file gc_typed.h.

#define GC_set_bit (   bm,
  index 
)    (bm)[index/GC_WORDSZ] |= ((GC_word)1 << (index%GC_WORDSZ))

Definition at line 42 of file gc_typed.h.

#define GC_WORD_LEN (   t)    (sizeof(t)/ sizeof(GC_word))

Definition at line 45 of file gc_typed.h.

#define GC_WORD_OFFSET (   t,
 
)    (offsetof(t,f)/sizeof(GC_word))

Definition at line 44 of file gc_typed.h.

#define GC_WORDSZ   (8*sizeof(GC_word))

Definition at line 39 of file gc_typed.h.


Typedef Documentation

typedef GC_word* GC_bitmap

Definition at line 35 of file gc_typed.h.

typedef GC_word GC_descr

Definition at line 48 of file gc_typed.h.


Function Documentation

GC_API GC_PTR GC_malloc_explicitly_typed GC_PROTO ( (size_t size_in_bytes, GC_descr d)  )
GC_API GC_PTR GC_calloc_explicitly_typed GC_PROTO ( (size_t nelements, size_t element_size_in_bytes, GC_descr d)  )