Example #1
0
void MM_reset(void)
{
    if (mm_global == NULL)
        return;
    mm_reset(mm_global);
    return;
}
Example #2
0
static void execve_initialize_routine()
{
	signal_reset();
	vfs_reset();
	mm_reset();
	tls_reset();
	dbt_reset();
}
Example #3
0
/* At the start of bn.move_median two heaps are created. One heap contains the
 * small values (a max heap); the other heap contains the large values (a min
 * heap). The handle, containing information about the heaps, is returned. */
inline mm_handle *
mm_new(const idx_t window, idx_t min_count)
{

    mm_handle *mm = malloc(sizeof(mm_handle));
    mm->nodes = malloc(window * sizeof(mm_node*));
    mm->node_data = malloc(window * sizeof(mm_node));

    mm->s_heap = mm->nodes;
    mm->l_heap = &mm->nodes[window / 2 + window % 2];

    mm->window = window;
    mm->odd = window % 2;
    mm->min_count = min_count;

    mm_reset(mm);

    return mm;
}