Lines Matching refs:rc
70 void *rc = REAL_FUNC(malloc)(size); in WRAPPER_FUNC()
73 if (!rc) { in WRAPPER_FUNC()
75 } else if (((uint8_t *)rc) + size > (uint8_t*)PICO_DEBUG_MALLOC_LOW_WATER) { in WRAPPER_FUNC()
76 printf("malloc %d %p->%p\n", (uint) size, rc, ((uint8_t *) rc) + size); in WRAPPER_FUNC()
79 check_alloc(rc, size); in WRAPPER_FUNC()
80 return rc; in WRAPPER_FUNC()
85 void *rc = REAL_FUNC(calloc)(count, size); in WRAPPER_FUNC()
88 if (!rc) { in WRAPPER_FUNC()
90 } else if (((uint8_t *)rc) + count * size > (uint8_t*)PICO_DEBUG_MALLOC_LOW_WATER) { in WRAPPER_FUNC()
91 printf("calloc %d %p->%p\n", (uint) (count * size), rc, ((uint8_t *) rc) + size); in WRAPPER_FUNC()
94 check_alloc(rc, count * size); in WRAPPER_FUNC()
95 return rc; in WRAPPER_FUNC()
100 void *rc = REAL_FUNC(realloc)(mem, size); in WRAPPER_FUNC()
103 if (!rc) { in WRAPPER_FUNC()
105 } else if (((uint8_t *)rc) + size > (uint8_t*)PICO_DEBUG_MALLOC_LOW_WATER) { in WRAPPER_FUNC()
106 printf("realloc %p %d->%p\n", mem, (uint) size, rc); in WRAPPER_FUNC()
109 check_alloc(rc, size); in WRAPPER_FUNC()
110 return rc; in WRAPPER_FUNC()