format_function_t *format_elt;
- /* Used for validattion/debugging. */
+ /* Used for validation/debugging. */
uword *used_elt_bitmap;
/* First and last element of doubly linked chain of elements. */
u32 flags;
/* Static heaps are made from external memory given to
- us by user and are not re-sizeable vectors. */
+ us by user and are not re-sizable vectors. */
#define HEAP_IS_STATIC (1)
} heap_header_t;
HEAP_DATA_ALIGN);
h_new = heap_header (v_new);
heap_dup_header (h_old, h_new);
- clib_memcpy (v_new, v_old, v_bytes);
+ clib_memcpy_fast (v_new, v_old, v_bytes);
return v_new;
}
return 0;
h = memory;
- memset (h, 0, sizeof (h[0]));
+ clib_memset (h, 0, sizeof (h[0]));
h->max_len = max_len;
h->elt_bytes = elt_bytes;
h->flags = HEAP_IS_STATIC;