예제 #1
0
void *pvPortCalloc(size_t num, size_t size, const char *file, unsigned line) {
  (void) file;
  (void) line;

  return umm_calloc(num, size);
}
예제 #2
0
/*
 * Wrapper for `umm_calloc()` which performs additional checks
 */
static void *wrap_calloc(size_t num, size_t size) {
  free_blocks_check();
  void *ret = umm_calloc(num, size);
  free_blocks_check();
  return ret;
}
예제 #3
0
파일: heap4.c 프로젝트: hervefox/Arduino
void * ICACHE_RAM_ATTR calloc(size_t count, size_t size){
  return umm_calloc(count, ((size + 3) & ~((size_t)0x3)));
}