Searched refs:ptr_alloc (Results 1 – 1 of 1) sorted by relevance
43 void *ptr_alloc, *ptr_aligned; in aligned_alloc() local48 ptr_alloc = malloc(size + alignment); in aligned_alloc()49 if (!ptr_alloc) in aligned_alloc()52 ptr_aligned = (void *)(((unsigned long)ptr_alloc & ~(alignment-1)) + alignment); in aligned_alloc()60 *((unsigned long *)ptr_aligned-1) = (unsigned long)ptr_alloc; in aligned_alloc()