PPL Logo

conv-core/mem-arena.c File Reference

Go to the source code of this file.

Data Structures

struct  _insert_ret_val

Typedefs

typedef struct _insert_ret_val insert_ret_val

Functions

static int find_list_bin (CmiInt8 nslots)
static dllnodelist_insert (slotset *ss, slotblock *sb)
static void list_delete (slotset *ss, slotblock *sb)
static void list_move (slotset *ss, dllnode *dlln, CmiInt8 old_nslots)
static btreenodecreate_btree_node ()
static slotblockfind_btree_slotblock (btreenode *node, CmiInt8 startslot)
static insert_ret_val btree_insert_int (slotset *ss, btreenode *node, CmiInt8 startslot, CmiInt8 nslots)
static btreenodebtree_insert (slotset *ss, btreenode *node, CmiInt8 startslot, CmiInt8 nslots)
static void btree_delete_int (slotset *ss, btreenode *node, CmiInt8 startslot, slotblock *sb)
static btreenodebtree_delete (slotset *ss, btreenode *node, CmiInt8 startslot)
slotsetnew_slotset (CmiInt8 startslot, CmiInt8 nslots)
CmiInt8 get_slots (slotset *ss, CmiInt8 nslots)
void grab_slots (slotset *ss, CmiInt8 sslot, CmiInt8 nslots)
void free_slots (slotset *ss, CmiInt8 sslot, CmiInt8 nslots)
static void delete_btree (btreenode *node)
static void delete_list_array (slotset *ss)
static void delete_slotset (slotset *ss)
static void print_btree_node (btreenode *node, int node_num)
static int print_btree_level (btreenode *node, int level, int current_level, int node_num)
static void print_btree_top_down (btreenode *node)
static void print_list_array (slotset *ss)
static void print_slots (slotset *ss)
void add_slots (slotset *ss, CmiInt8 sslot, CmiInt8 nslots)


Typedef Documentation


Function Documentation

static int find_list_bin ( CmiInt8  nslots  )  [static]

Definition at line 24 of file mem-arena.c.

static dllnode* list_insert ( slotset ss,
slotblock sb 
) [static]

static void list_delete ( slotset ss,
slotblock sb 
) [static]

static void list_move ( slotset ss,
dllnode dlln,
CmiInt8  old_nslots 
) [static]

static btreenode* create_btree_node (  )  [static]

static slotblock* find_btree_slotblock ( btreenode node,
CmiInt8  startslot 
) [static]

static insert_ret_val btree_insert_int ( slotset ss,
btreenode node,
CmiInt8  startslot,
CmiInt8  nslots 
) [static]

static btreenode* btree_insert ( slotset ss,
btreenode node,
CmiInt8  startslot,
CmiInt8  nslots 
) [static]

static void btree_delete_int ( slotset ss,
btreenode node,
CmiInt8  startslot,
slotblock sb 
) [static]

static btreenode* btree_delete ( slotset ss,
btreenode node,
CmiInt8  startslot 
) [static]

Definition at line 776 of file mem-arena.c.

References btree_delete_int(), _btreenode::child, free(), and _btreenode::num_blocks.

slotset * new_slotset ( CmiInt8  startslot,
CmiInt8  nslots 
)

CmiInt8 get_slots ( slotset ss,
CmiInt8  nslots 
)

void grab_slots ( slotset ss,
CmiInt8  sslot,
CmiInt8  nslots 
)

void free_slots ( slotset ss,
CmiInt8  sslot,
CmiInt8  nslots 
)

static void delete_btree ( btreenode node  )  [static]

Definition at line 977 of file mem-arena.c.

References _btreenode::child, delete_btree(), free(), and _btreenode::num_blocks.

static void delete_list_array ( slotset ss  )  [static]

Definition at line 993 of file mem-arena.c.

References free(), _slotset::list_array, _dllnode::next, and _dllnode::previous.

static void delete_slotset ( slotset ss  )  [static]

Definition at line 1015 of file mem-arena.c.

References _slotset::btree_root, delete_btree(), delete_list_array(), and free().

static void print_btree_node ( btreenode node,
int  node_num 
) [static]

static int print_btree_level ( btreenode node,
int  level,
int  current_level,
int  node_num 
) [static]

static void print_btree_top_down ( btreenode node  )  [static]

Definition at line 1056 of file mem-arena.c.

References CmiPrintf(), level, and print_btree_level().

static void print_list_array ( slotset ss  )  [static]

static void print_slots ( slotset ss  )  [static]

Definition at line 1094 of file mem-arena.c.

References _slotset::btree_root, print_btree_top_down(), and print_list_array().

void add_slots ( slotset ss,
CmiInt8  sslot,
CmiInt8  nslots 
)


Generated on Sat May 26 08:08:07 2012 for Charm++ by  doxygen 1.5.5