Back to index

lightning-sunbird  0.9+nobinonly
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_get_bit(bm, index)   (((bm)[divWORDSZ(index)] >> modWORDSZ(index)) & 1)
#define GC_set_bit(bm, index)   (bm)[divWORDSZ(index)] |= (word)1 << modWORDSZ(index)
#define GC_MALLOC_EXPLICTLY_TYPED(bytes, d)   GC_malloc_explicitly_typed(bytes, d)
#define GC_CALLOC_EXPLICTLY_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

Definition at line 85 of file gc_typed.h.

#define GC_get_bit (   bm,
  index 
)    (((bm)[divWORDSZ(index)] >> modWORDSZ(index)) & 1)

Definition at line 36 of file gc_typed.h.

Definition at line 83 of file gc_typed.h.

#define GC_set_bit (   bm,
  index 
)    (bm)[divWORDSZ(index)] |= (word)1 << modWORDSZ(index)

Definition at line 38 of file gc_typed.h.


Typedef Documentation

typedef GC_word* GC_bitmap

Definition at line 32 of file gc_typed.h.

typedef GC_word GC_descr

Definition at line 41 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 )