Home
last modified time | relevance | path

Searched refs:new_ptr (Results 1 – 2 of 2) sorted by relevance

/hardware/google/gfxstream/guest/mesa/src/util/
Du_debug_memory.c228 void *new_ptr; in debug_realloc() local
282 new_ptr = data_from_header(new_hdr); in debug_realloc()
283 memcpy( new_ptr, old_ptr, old_size < new_size ? old_size : new_size ); in debug_realloc()
290 return new_ptr; in debug_realloc()
Dralloc.c1150 ralloc_header *new_ptr; in linear_realloc() local
1152 new_ptr = linear_alloc_child(parent, new_size); in linear_realloc()
1155 return new_ptr; in linear_realloc()
1159 if (likely(new_ptr && old_size)) in linear_realloc()
1160 memcpy(new_ptr, old, MIN2(old_size, new_size)); in linear_realloc()
1162 return new_ptr; in linear_realloc()