Lines Matching refs:p1

312 	char *p1 = NULL, *p2 = NULL;  in self_test_malloc()  local
319 (void *)p1, (void *)p2, (void *)p3, (void *)p4); in self_test_malloc()
321 p1 = malloc(1024); in self_test_malloc()
326 (void *)p1, (void *)p2, (void *)p3, (void *)p4); in self_test_malloc()
327 r = (p1 && p2 && malloc_buffer_is_within_alloced(p1, 1024) && in self_test_malloc()
328 !malloc_buffer_is_within_alloced(p1 + 25, 1000) && in self_test_malloc()
329 !malloc_buffer_is_within_alloced(p1 - 25, 500) && in self_test_malloc()
330 malloc_buffer_overlaps_heap(p1 - 25, 500)); in self_test_malloc()
337 p3 = realloc(p1, 3 * 1024); in self_test_malloc()
339 p1 = NULL; in self_test_malloc()
346 (void *)p1, (void *)p2, (void *)p3, (void *)p4); in self_test_malloc()
353 free(p1); in self_test_malloc()
356 p1 = NULL; in self_test_malloc()
366 (void *)p1, (void *)p2, (void *)p3, (void *)p4); in self_test_malloc()
381 p1 = malloc(1024); in self_test_malloc()
386 (void *)p1, (void *)p2, (void *)p3, (void *)p4); in self_test_malloc()
387 r = (p1 && p3 && p4 && in self_test_malloc()
394 free(p1); in self_test_malloc()
397 p1 = NULL; in self_test_malloc()
407 (void *)p1, (void *)p2, (void *)p3, (void *)p4); in self_test_malloc()
432 char *p1 = NULL, *p2 = NULL; in self_test_nex_malloc() local
439 (void *)p1, (void *)p2, (void *)p3, (void *)p4); in self_test_nex_malloc()
441 p1 = nex_malloc(1024); in self_test_nex_malloc()
446 (void *)p1, (void *)p2, (void *)p3, (void *)p4); in self_test_nex_malloc()
447 r = (p1 && p2 && nex_malloc_buffer_is_within_alloced(p1, 1024) && in self_test_nex_malloc()
448 !nex_malloc_buffer_is_within_alloced(p1 + 25, 1000) && in self_test_nex_malloc()
449 !nex_malloc_buffer_is_within_alloced(p1 - 25, 500) && in self_test_nex_malloc()
450 nex_malloc_buffer_overlaps_heap(p1 - 25, 500)); in self_test_nex_malloc()
457 p3 = nex_realloc(p1, 3 * 1024); in self_test_nex_malloc()
459 p1 = NULL; in self_test_nex_malloc()
466 (void *)p1, (void *)p2, (void *)p3, (void *)p4); in self_test_nex_malloc()
473 nex_free(p1); in self_test_nex_malloc()
476 p1 = NULL; in self_test_nex_malloc()
486 (void *)p1, (void *)p2, (void *)p3, (void *)p4); in self_test_nex_malloc()
501 p1 = nex_malloc(1024); in self_test_nex_malloc()
506 (void *)p1, (void *)p2, (void *)p3, (void *)p4); in self_test_nex_malloc()
507 r = (p1 && p3 && p4 && in self_test_nex_malloc()
514 nex_free(p1); in self_test_nex_malloc()
517 p1 = NULL; in self_test_nex_malloc()
527 (void *)p1, (void *)p2, (void *)p3, (void *)p4); in self_test_nex_malloc()